用脚本判断输入框的字节数

来源:互联网 发布:国房景气指数年度数据 编辑:程序博客网 时间:2024/06/14 14:22
<input  type="text"  name="w"  size="20"><input  type="submit"  name="B1"  onclick="alert(w.value.replace(/[^x00-xff]/g,'**').length)">
原创粉丝点击