<body>
<div id="divtest">
<div class="title">
<span class="fl">我最爱吃的水果</span>
<span class="fr">
<input id="btnShow" type="button" value="加载" />
</span>
</div>
<ul></ul>
</div>
<script type="text/javascript">
$(function () {
$("#btnShow").bind("click", function () {
var $this = $(this);
$("ul").load("http://www.imooc.com/data/fruit_part.html",function(){
$this.attr("disabled","true");
});
})
});
</script>
</body>
- 2 回答
- 0 关注
- 1932 浏览
添加回答
举报
0/150
提交
取消