public function trim(s : String):String //去空格
{
return s.replace(/([ ]{1})/g,"");
}

public function qn(s:String):String //去空行
{
var reg:RegExp = /\n/g;
var str:String = s.replace(reg,"");
return str;
}