|
|
<!DOCTYPE HTML>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>获取用户IP的demo</title>
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
<meta name="generator" content="nico 0.5.1" />
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
|
|
|
<script>
|
|
|
(
|
|
|
function(w,d,s,j,f)
|
|
|
{
|
|
|
w['YohoAcquisitionObject'] = f;
|
|
|
w[f] = function()
|
|
|
{
|
|
|
w[f].p=arguments;
|
|
|
};
|
|
|
var a=d.createElement(s);
|
|
|
var m=d.getElementsByTagName(s)[0];
|
|
|
a.async=1;
|
|
|
a.src=j;
|
|
|
m.parentNode.insertBefore(a,m);
|
|
|
}
|
|
|
)(window,document,'script','/dist/yas-jssdk/1.0.15/yas-debug.js','_yas');
|
|
|
|
|
|
_yas(1*new Date(),'1.0','ds6das2kkj','21323231','geo','');
|
|
|
|
|
|
|
|
|
document.write(returnCitySN["cip"])
|
|
|
|
|
|
</script>
|
|
|
</head>
|
|
|
<body style="height:2000px; width:800px; scroll:auto">
|
|
|
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|