input值实时检测

来源:互联网 发布:军公教 知乎 编辑:程序博客网 时间:2024/05/10 17:04
  1. $('#coords').bind('input propertychange'function() {  
  2.     $('#coords').html('还能输入'+$(this).val().length+'个汉字');  
  3. });
0 0
原创粉丝点击