Uncaught Reference Error: callback not defined
Uncaught Reference Error: callback not defined
我想获取javascriptajax机器的IP地址。
我使用了网站 https://geoip-db.com/jsonp/。使用 ajax 但错误不断出现。
jQuery.ajax({
url: 'https://geoip-db.com/jsonp/',
dataType: 'jsonp'
});
错误信息是:
Uncaught ReferenceError: callback is not defined
at ?callback=jQuery19009023082782456009_1560194259394&_=1560194259395:1
而不是jQuery.ajax({ url: 'https://geoip-db.com/jsonp/', dataType: 'jsonp' });
使用jQuery.ajax({ url: 'https://geoip-db.com/json/', dataType: 'json' });
我想获取javascriptajax机器的IP地址。
我使用了网站 https://geoip-db.com/jsonp/。使用 ajax 但错误不断出现。
jQuery.ajax({
url: 'https://geoip-db.com/jsonp/',
dataType: 'jsonp'
});
错误信息是:
Uncaught ReferenceError: callback is not defined at ?callback=jQuery19009023082782456009_1560194259394&_=1560194259395:1
而不是jQuery.ajax({ url: 'https://geoip-db.com/jsonp/', dataType: 'jsonp' });
使用jQuery.ajax({ url: 'https://geoip-db.com/json/', dataType: 'json' });