2010-12-05 31 views

回答

1

你可以在換行(\ r和\ n),就搶到最後一個元素拆分:

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