jquery ajax请求本地json,必须用get,类型必须是json
/*$.ajax({
type:"GET",
url:"data/data.json",
dataType:"json",
success:function(){
alert("success");
},
error:function(){
alert("error");
}
扫描二维码关注公众号,回复:
307399 查看本文章
});*/
jquery ajax请求本地json,必须用get,类型必须是json
/*$.ajax({
type:"GET",
url:"data/data.json",
dataType:"json",
success:function(){
alert("success");
},
error:function(){
alert("error");
}
});*/