//方法1 var words=mainForm.edit2.text; var res=string.splitEx(words,"<\r\n>|\n|\p"); //方法2 var words=mainForm.edit2.text; var res=string.split(words,"\r\n"); table.removeByValue(res,'',true) //去除空元素 console.dump(res)