您为什么要将击键转换为文本?添加一个单击按钮,将文本区域内的文本发送到服务器。您可以使用value属性作为海报之前指出的内容,或使用jQuery的API:
$('input#mybutton').click(function() { var text = $('textarea#mytextarea').val(); //send to server and process response});
您为什么要将击键转换为文本?添加一个单击按钮,将文本区域内的文本发送到服务器。您可以使用value属性作为海报之前指出的内容,或使用jQuery的API:
$('input#mybutton').click(function() { var text = $('textarea#mytextarea').val(); //send to server and process response});