---
title: "TEXTAREA去空格问题"
author: "txin0814"
date: "2011-08-30T12:35:16Z"
tags: []
categories: ["Web前端"]
slug: "textarea"
draft: false
lastmod: "2011-08-30T12:35:16Z"
id: 1161270
url: "https://txin0814.iteye.com/blog/1161270"
---

。但如果你的代码是这样写的，那么肯定就会出现上述问题。去掉文本前的空格只需要改成这样，。记住千万不要将首尾标签换行，不然它会将/n也当做是它的文本内容。