---
title: "TextArea中回车换行的处理"
author: "Jack-chen"
date: "2010-03-30T19:23:07Z"
tags: ["Go", "Java"]
categories: ["Web前端"]
slug: "textarea"
draft: false
lastmod: "2010-03-30T19:23:40Z"
id: 628543
url: "https://chenxiaohong.iteye.com/blog/628543"
---

```java

instanceObject.addEventListener("enter",function():void{
	// NOTE: Validation logic would go here.
});
protected function ss_inputHander(event:TextEvent):void{
	if(event.text == "\n"){
		event.preventDefault(); 
	}
}

```