【发布时间】:2015-10-20 16:46:47
【问题描述】:
我正在使用 intlTelInput.min.js 使用此代码进行地理 IP 查找
jQuery("#teephnumber").intlTelInput({
allowExtensions: true,
defaultCountry: "auto",
setNumber: "Telephone number",
geoIpLookup: function(callback) {
$.get('http://ipinfo.io', function() {}, "jsonp").always(function(resp) {
var countryCode = (resp && resp.country) ? resp.country : "";
callback(countryCode);
});
},
nationalMode: false,
utilsScript: "/wp-content/themes/imc/js/utils.js"
});
它工作正常,但现在 不在控制台我看到这个错误:
The server responded with a status of 429 (Too Many Requests), GET http://ipinfo.io/?callback=jQuery1112025137682701461017_1438183879450&_=1438183879451
因为这个工作没有javascript代码。这可能是什么原因?
【问题讨论】:
-
没有代码我们需要像耶稣一样知道怎么回事
-
已发布@messerbill
标签: javascript jquery geolocation