- 页面js加载时机
$(function(){})
2. 常见使用on事件代理
$("p").on("click",function(){
alert("段落被点击了。");
});
3. ajax 请求
$.ajax(
{
url:"demo_test.txt",
data:{},
success:function(result){
$("#div1").html(result);
}
});
你的关注,就是我的坚持!