現(xiàn)在項(xiàng)目中想通過js得到用戶的當(dāng)前外網(wǎng)IP,現(xiàn)有個(gè)地址返回的信息如下:if(window.IPCallBack) {IPCallBack({"ip":"116.226.214.249","pro":"上海市","proCode":"310000","city":"上海市","cityCode":"310000","region":"浦東新區(qū)","regionCode":"310115","addr":"上海市浦東新區(qū) 電信","regionNames":"","err":""});}這種信息不知道js如何才能得到返回的ip呢?獲取ip地址:http://whois.pconline.com.cn/...
前端跨域中,將url追加到script的src,如何拿到數(shù)據(jù)
LEATH
2018-10-12 14:09:02