我在ipinfo进行jquery调用时收到此错误。
@RequestMapping(value = "/admin/{param1}/{param2}/users", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
jQuery
jquery.js?ver=1.12.4:4 GET http://ipinfo.io/?callback=jQuery1124031570803364791034_1511997975801&_=1511997975802 net::ERR_ABORTED
HTML
jQuery.get("http://ipinfo.io", function (response) {
if (response.country === "AU"){
jQuery("a.my_link").attr("href","http://example.com.au");
} else if(response.country === "US"){
jQuery("a.my_link").attr("href","http://example.us");
} else {
jQuery("a.my_link").attr("href","http://example.com.au");
}
}, "jsonp");