最佳答案
您有跨域问题,因此您需要使用JSONP,因此请更改您的jquery方法,如下所示
原文链接:https://www.f2er.com/jquery/428639.htmlIf the URL includes the string “callback=?” (or similar,as defined by
the server-side API),the request is treated as JSONP instead.
$.getJSON("http://50.116.19.49/rest/user.json?jsoncallback=?",field){
$("div").append(field + " ");
});
});