Javascript 可以在前端运行卫星导航吗?
可以在前端运行此库吗? 或者,通过其他方式接收用户的国家代码 使用它而不是直接请求的好处是什么:Javascript 可以在前端运行卫星导航吗?,javascript,node.js,npm,Javascript,Node.js,Npm,可以在前端运行此库吗? 或者,通过其他方式接收用户的国家代码 使用它而不是直接请求的好处是什么: function httpGet() { var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", 'http://www.telize.com/geoip', false ); // false for synchronous request xmlHttp.send( null ); console.log('JSON.pa
function httpGet() {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", 'http://www.telize.com/geoip', false ); // false for synchronous request
xmlHttp.send( null );
console.log('JSON.parse(xmlHttp.responseText)', JSON.parse(xmlHttp.responseText))
return JSON.parse(xmlHttp.responseText);
}
是的,我收到错误:
g.setTimeout不是函数
是的,我收到错误:g.setTimeout不是函数