url返回的json数据
{"s":"1","m":{"u":{"id":1043,"sn":5,"e":null,"p":"Lusers/2014/08/04/09/1407117513448.jpg","nn":"LandRoverq","ci":null,"m":"18661035698","im":"1","bd":"1982-05-20"},"a":"1.7"} }
js处理它
$("body").undelegate(".mem_gc_btn","click").delegate(".mem_gc_btn","click",function(){
$(".pyloading").show();
$.ajax({
url : "http://api.p1pai.com:8388/d/v3.0/u/d?jc=?&u=1043&tk=8E1266E084592E3732AEAE8426A2EE38&mc=8942A0A8-781A-43A8-A472-BD802BD56816&k1=v2LgZ2flnOSixUJH93ERsgrA2f7idFinmQpg8X4ZvYsY7zvG07kJR/G35Sioflce",
dataType : "json",
type : "post",
contentType: "application/json",
success: function(json) {
$(".pyloading").hide();
if (json) {
alert('success');
}else{
alert('failed');
}
}
});
但是我在firefox中使用了firebug,它显示了这个错误!