textarea

将所以的\n换行符号替换为''
str.replace(/\n/g, '')

posted @ 2022-07-12 19:40  Running00  阅读(70)  评论(0)    收藏  举报