stack overflow at line:0 什么原因? 英文和汉字的字节数本来就不同,如果是汉字应该除2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><script>var arrfunction textCounter(obj, maxlimit) { var value = obj.value; if (value.length > maxlimit) { obj.value = value.substring(0, maxlimit); } else { document.all.remLen.value = maxlimit - value.length; }}</script><body bgcolor="#FFFFFF" text="#000000"><font color=46A718><input name=remLen value=50 readonly type=text size=4 maxlength=3 style="background-color: eaffe0; border: 0; color: red"></font><br><textarea name=words style="width: 528px" rows=5 class=input1 onpropertychange="textCounter(this, 50)"></textarea> 在我这里测试没有发现这个问题,一切正常的啊? 求:Javascript如何把UL LI形式的转换成树型结构显示 javascript中用frameset js中的疑问!高手指点一下!谢谢了! 外部引用JS文件包含<%=%>,给一个解决方案吧!! iframe 问题 [Firefox]动态生成Form内容,提交无效 如何在JS程序中停一些时间再往下执行? 怎样一打开网页就是全屏显示? 动态添加输入框! 特效,高分求助。 这样对吗?该怎样写? (ajax)javascript 解析xml出错
<script>
var arr
function textCounter(obj, maxlimit) {
var value = obj.value;
if (value.length > maxlimit) {
obj.value = value.substring(0, maxlimit);
} else {
document.all.remLen.value = maxlimit - value.length;
}
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<font color=46A718>
<input name=remLen value=50 readonly type=text size=4 maxlength=3 style="background-color: eaffe0; border: 0; color: red">
</font><br>
<textarea name=words style="width: 528px" rows=5 class=input1 onpropertychange="textCounter(this, 50)"></textarea>