我的代码如下:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title> New Document </title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script> $(function(){ document.getElementById("test").onpropertychange=function(){ alert("test"); }; $("#test").bind("propertychange",function(){ alert("abc"); }); }); </script> </head> <body> <input id="test"></input> </body> </html>
结果只弹出了test,没有弹出abc,有朋友知道是什么原因不?
九州编程
暮色呼如
相关分类