如下代码
http://jsbin.com/besuvitaxu/1/edit?html,css,js,output
现在只能做到兼容webkit,对于ie8无效。哪位大神帮我改一下。谢谢
怪我咯2017-04-10 14:48:14
参考这个
PS: 提问前可以先搜索一下的~
<input type="text" name="username" id="test">
document.getElementById('test').attachEvent('onpropertychange',function(e) {
var that=this;
if(e.propertyName!='value') return;
$(that).trigger('input');
console.log(123);
});