求教:IE读取json数据为undefined,其它浏览器都是好的。
周古之 2013-01-08 08:15:29 ajax代码:
$.ajax({type:"get",url:"aa.php",async:false,dataType:'json',jsonp:'jsonpcallback',timeout:500,
success:function(json){
alert(json.install); // 此处数据在chrome应该为1,在IE浏览器中为undefined
}
});
aa.php页面数据:
{
"install":1,
"start":"yes",
"currentRequestTime":0
}