<script type="application/javascript"> function getgeoip(json){ var footerText = "IP地址:" + json.ip + " " +"["+ json.country+"]"; document.getElementById("ip-plugin").innerHTML = footerText; } var scriptTag = document.createElement('script'); scriptTag.src = 'https://api.ip.sb/geoip?callback=getgeoip'; document.body.appendChild(scriptTag); </script>
标签:插件,页脚,ip,scriptTag,json,document From: https://www.cnblogs.com/Cyberpunk-2077/p/17797960.html