目前百度的ip api返回的是
复制代码 使用
复制代码 返回不到地址位置 应该是
复制代码 写错了 因为怎么写呢 |
。。。什么乱七八糟的 getScript用的也不对吧 |
应该是。 $.getJSON
然后返回的JSON(array) 应该是array[‘data’][‘location’] |
复制代码 |
JQ都忘光了 |
4楼正解,你这$.getScript用的不对 |
浏览器 f12 console 运行报错大佬 |
跨域肯定报错,这种api你只能在后台请求,浏览器你肯定不行 |
好的 谢谢 |