Heim > Artikel > Backend-Entwicklung > Einfaches JS, um den IP-Code des Browsers zu erhalten
<script src="http://fw.qq.com/ipaddress" charset="gb2312"></script> <script src="http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js" charset="gb2312"></script> <script> for(i in IPData){ if(i != 1) { alert(IPData[i]); } } </script>