是否有任何jquery插件计算输入单词的长度...无论输入多少单词...
表示计算单词包含的字符数,并限制每个单词的输入字符...
如果您有解决方案,请告诉我......
感谢
答案 0 :(得分:0)
http://roy-jin.appspot.com/jsp/textareaCounter.jsp
http://web.archive.org/web/20150318025849/http://www.jqeasy.com/jquery-character-counter/demo/
http://theproductguy.com/noblecount/noblecount.demo.html
http://wplayground.comuv.com/counter/
$('#word').keyup(
function(){
var words = $(this).val().split();
//then you have array of words, and porcess it
}
)
<textarea id="word"></textarea>