var temp;$.ajax({ async:false, type : "POST", url : defaultPostData.url, dataType : 'json', success : function(data) { temp=data; }});alert(temp);
来源: http://www.bubuko.com/infodetail-1953675.html