写一段获取当前IP的html代码
<!DOCTYPE html>
<html>
<head>
<title>获取当前IP</title>
<meta charset="utf-8">
</head>
<body>
<h1>获取当前IP</h1>
<p>您的IP地址是:</p>
<script type="text/javascript">
function getIP(json) {
document.write(json.query);
}
</script>
<script type="text/javascript" src="http://jsonip.com/?callback=getIP"></script>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/CrF 著作权归作者所有。请勿转载和采集!