81,094
社区成员
发帖
与我相关
我的任务
分享
$.getJSON("http://www.w3school.com.cn/example/jquery/demo_ajax_json.js",
function(result) {
alert(result);
}
);
var htmlobj=$.ajax({url:"http://www.w3school.com.cn/example/jquery/demo_ajax_json.js",async:false});
alert(JSON.parse(htmlobj.responseText).firstName);