<!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>挑战题</title> <style> table{ width:300px; text-align:center; border:1px solid #eee; } </style> <script> var jsondata= [ { "name":"mary", "age":"18", "sex":"male" }, { "name":"leon", "age":"19", "sex":"female" }, { "name":"jack", "age":"20", "sex":"male" }, ]; $(function () { $("#load").bind("click", function () { alert("~"); }); }); </script> </head> <body> <div id="result"> <table> <caption>学生资料</caption> <tr><td colspan="4"><input id="load" type="button" value="学生资料导入"</td></tr> <tr><th>序号</th><th>姓名</th><th>年龄</th><th>性别</th></tr> </table> </div> </body></html>
2 回答
little_hui
TA贡献2条经验 获得超0个赞
$(function () {
$("#load").bind("click", function (click) {
alert("~");
});
});
jq要这么写 你的JQ包怎么没有导入?
- 2 回答
- 0 关注
- 933 浏览
添加回答
举报
0/150
提交
取消