<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>bind()方法绑定事件</title> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script> </head> <body> <h3>bind()方法绑多个事件</h3> <input id="btntest" type="button" value="点击或移出就不可用了" /> <script type="text/javascript"> $(function () { $("#btntest").bind("click mouseout",function () { $(this).attr("disabled", "true"); }) }); </script> </body> </html>
R2
2014-09-01
0 回答
举报
0/150
提交
取消