<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ready()事件</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
</head>
<body>
<h3>页面载入时触发ready()事件</h3>
<div id="tip"></div>
<input id="btntest" type="button" value="点下我" />
<script type="text/javascript">
$(function() {
$("#btntest").bind("click", function () {
$("#tip").html("我被点击了!");
});
});
</script>
</body>
</html>
E Z
2014-10-05
1 回答
举报
0/150
提交
取消