HTML textarea: use JavaScript to get wrapped text?

前端 未结 5 1615
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 15:31

If I\'ve got a textarea like this:


Is there any way, using JavaScript, t

5条回答
  •  梦谈多话
    2021-01-03 16:12

    It's a bit of a hack, but you could create a script on the server that prints out whatever is posted to it in some format (JSON, plain text, whatever suits you) and post your textarea to that script via AJAX whenever you need to get the contents of it.

提交回复
热议问题