$("#litest").html($("form").serialize())
2016-04-22
$.post("http://www.imooc.com/data/check_f.php",{
num:$("#txtNumber").val()
},
num:$("#txtNumber").val()
},
2016-04-22
$.get("http://www.imooc.com/data/info_f.php",function(data)
2016-04-21
$.getScript("http://www.imooc.com/data/sport_f.js",function()
2016-04-21
$.getScript("http://www.imooc.com/data/sport_f.js ",function()
2016-04-21
$.getJSON("http://www.imooc.com/data/sport.json",function(data)
2016-04-21
是否缺少“input”, <button>按钮通常也被认为是提交按钮,为更好区分,只要在:submit选择器之前添加“input”符号
2016-04-21
var url='/test/test.do';
$ajax({
url:url;
dataType:'text';
success:function(data){
$post(url,{name:"John",time:"2pm"},function(data)){
alert("Data Loaded:"+data);
},'text');
}
});
$ajax({
url:url;
dataType:'text';
success:function(data){
$post(url,{name:"John",time:"2pm"},function(data)){
alert("Data Loaded:"+data);
},'text');
}
});
2016-04-21