2010-12-05 65 views

回答

1

你可以在换行(\ r和\ n),就抢到最后一个元素拆分:

textfield.text = textfield.text.split(/[\r\n]/gm).pop();