<h3>51漂泊网(200字以内)</h3> <textarea onkeyup="checkLen(this)"></textarea> <div>您还可以输入 <span id="count">200</span> 个文字</div> <script type="text/javascript"> function checkLen(obj) { var maxChars = 200;//最多字符数 if (obj.value.length > maxChars) obj.value = obj.value.substring(0,maxChars); var curr = maxChars - obj.value.length; document.getElementById("count").innerHTML = curr.toString(); } </script>
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
|小黑屋|手机版|IPiaoBo Inc. ( 渝ICP备17002826号 )
GMT+8, 2025-5-8 01:00 , Processed in 0.104277 second(s), 53 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.