文本框内容改变判断

1 var bind_name = 'input';
2       if (navigator.userAgent.indexOf("MSIE") != -1){
3         bind_name = 'propertychange';
4       }
5     //文本框编辑事件
6     $(obj).on(bind_name, function() {

keypress 和 keyup 会被输入法拦截,导致失效.

原文地址:https://www.cnblogs.com/nigou/p/4653875.html