宝哥软件园

js获取互联网协议(互联网协议的缩写)和地区

编辑:宝哥软件园 来源:互联网 时间:2021-09-05

这个接口是搜狐的目前是可用的,就是不知道以后会不会失效

效果图:

代码如下:

!doctype html html heartheta charset=' utf-8 ' title t1/title meta content=' width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scale=0 ' name=' viewport ' style/* CSS reset */body,p,ol,ul,li,dl,dd,h1,h2,h3,h4,h5,h6,input,iframe,nav,header,footer { margin:padd :列表样式:无;} body { font : 16px微软雅黑,无衬线;color: # 2a2b2c背景# fff}a、img { text-decoration : nonecolor : # 2 a2b2cb order : 0;}*、*:before、* : before { outline : none;盒子尺寸:边框盒子;}.XXX-BTN {显示器: }块;宽度: 100像素;高: 38pxfont: 16px/38px微软雅黑;color: # fff背景技术# 0cf border : 0;光标:指针;文本对齐:中心;边界半径: 2px盒影: 0 1px 5px # BBBopa city 3360 . 8 transition : 5s }。XXX-BTN :悬停{欧巴城3360 1;盒影: 0 1px 10px # AAA}/样式/标题dyh 1点击获取IP/h1 brbutton class=' XXX-BTN ' onclick=' aa()' click me/button script src=' http :http://PV。搜狐。com/city JSON?ie=utf-8 '/脚本脚本函数aa(){ alert(返回城市sn[' CIP ']返回城市sn[' cname ']);};/脚本/正文/html以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,同时也希望多多支持我们!

更多资讯
游戏推荐
更多+