摘要: <textarea rows=6 cols=20 onkeypress="check(this);"></textarea><script>function check(obj){var o=obj.createTextRange().getClientRects(); alert(o); }</script>或者alert(document.getElementById("taxtaera的ID").value.split(//r?/n/).length);如果规定为10行,如何判断和限制,并且把多输入或 阅读全文
posted @ 2012-11-28 17:47 大脸 阅读(8417) 评论(0) 推荐(0) 编辑