Authored by 梁志锋

升级到1.0.15

@@ -71,8 +71,16 @@ var browserInfo = { @@ -71,8 +71,16 @@ var browserInfo = {
71 sy: window.navigator.platform, //systemInfo 71 sy: window.navigator.platform, //systemInfo
72 ce: window.navigator.cookieEnabled, //cookiesEnabled 72 ce: window.navigator.cookieEnabled, //cookiesEnabled
73 fv: flash.f ? flash.v : 0 //flashVersion 73 fv: flash.f ? flash.v : 0 //flashVersion
  74 +
74 }; 75 };
75 76
  77 +(function() {
  78 + var hm = document.createElement("script");
  79 + hm.src = "http://pv.sohu.com/cityjson?ie=utf-8";
  80 + var s = document.getElementsByTagName("script")[0];
  81 + s.parentNode.insertBefore(hm, s);
  82 +})();
  83 +
76 //入口方法 84 //入口方法
77 var _yas = function(initTime, version, tid, uid, geo, selector) { 85 var _yas = function(initTime, version, tid, uid, geo, selector) {
78 custInfo.ak = tid; 86 custInfo.ak = tid;
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 - <title>yas-jssdk - Demo</title> 5 + <title>发送鼠标信息的demo</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <meta name="generator" content="nico 0.5.1" /> 7 <meta name="generator" content="nico 0.5.1" />
8 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 8 <meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -2,11 +2,11 @@ @@ -2,11 +2,11 @@
2 <html lang="en"> 2 <html lang="en">
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 - <title>yas-jssdk - Demo</title> 5 + <title>页面error信息上报的demo</title>
6 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <meta name="viewport" content="width=device-width, initial-scale=1">
7 <meta name="generator" content="nico 0.5.1" /> 7 <meta name="generator" content="nico 0.5.1" />
8 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 8 <meta http-equiv="X-UA-Compatible" content="IE=edge">
9 -<script> 9 + <script>
10 ( 10 (
11 function(w,d,s,j,f) 11 function(w,d,s,j,f)
12 { 12 {
@@ -31,7 +31,9 @@ function message() @@ -31,7 +31,9 @@ function message()
31 adddlert("Welcome guest!") 31 adddlert("Welcome guest!")
32 } 32 }
33 33
34 -</script> 34 +
  35 +
  36 + </script>
35 </head> 37 </head>
36 <body style="height:2000px; width:800px; scroll:auto"> 38 <body style="height:2000px; width:800px; scroll:auto">
37 39
  1 +<!DOCTYPE HTML>
  2 +<html lang="en">
  3 + <head>
  4 + <meta charset="UTF-8">
  5 + <title>获取用户IP的demo</title>
  6 + <meta name="viewport" content="width=device-width, initial-scale=1">
  7 + <meta name="generator" content="nico 0.5.1" />
  8 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9 + <script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
  10 + <script>
  11 +(
  12 + function(w,d,s,j,f)
  13 + {
  14 + w['YohoAcquisitionObject'] = f;
  15 + w[f] = function()
  16 + {
  17 + w[f].p=arguments;
  18 + };
  19 + var a=d.createElement(s);
  20 + var m=d.getElementsByTagName(s)[0];
  21 + a.async=1;
  22 + a.src=j;
  23 + m.parentNode.insertBefore(a,m);
  24 + }
  25 + )(window,document,'script','/dist/yas-jssdk/1.0.15/yas-debug.js','_yas');
  26 +
  27 +_yas(1*new Date(),'1.0','ds6das2kkj','21323231','geo','');
  28 +
  29 +
  30 +document.write(returnCitySN["cip"])
  31 +
  32 + </script>
  33 +</head>
  34 +<body style="height:2000px; width:800px; scroll:auto">
  35 +
  36 +</body>
  37 +</html>