jQuery ajax requests local json, you must use get, and the type must be json
/*$.ajax({
type:"GET",
url:"data/data.json",
dataType:"json",
success:function(){
alert("success");
},
error:function(){
alert("error");
}
});*/
jQuery ajax requests local json, you must use get, and the type must be json
/*$.ajax({
type:"GET",
url:"data/data.json",
dataType:"json",
success:function(){
alert("success");
},
error:function(){
alert("error");
}
});*/