输入框实时更新

$("input:text").bind("input propertychange",function(){

  console.log($(this).val().length);//打印输入框字符长度
 
});

posted @ 2018-10-19 17:33  Tutao1995  阅读(185)  评论(0编辑  收藏  举报