3 回答
TA贡献1821条经验 获得超4个赞
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <html> <head> <title>测试JQuery</title> <meta charset = "utf-8"/> <style> .class_1{ background-color: red; } </style> <script type = "text/javascript" src = "../JQuery/jquery.js"></script>
</head> <body> <input class = "class_1" type = "button" id="test" value = "点击测试"/> <script language = "javascript"> $(document).ready(function(){ alert("Hello JQuery!"); }); //这里触发事件后不能输出您好 $('#test').click(function(){ alert('您好'); }); </script> </body> </html> |
- 3 回答
- 0 关注
- 801 浏览
添加回答
举报