我正在使用j Query,并想知道,我是否应当使用阀()或文本(或另一种方法)来读和更新文本的内容。
I have tried both and I ve had issues with both. When I use text() to update textarea, line breaks ( ) don t work. When I use val() to retrieve the textarea content, the text gets truncated if it s too long.