Authored by 梁志锋

删除多余的demo

... ... @@ -2,6 +2,7 @@
* @fileoverview YAS (YOHO! Acquisition System) YOHO!采集系统的前端js的开发包,
* 用于在网页端采集信息(应用信息,用户信息,用户行为信息,浏览器及其系统信息)。
*/
require('yoho.json2');
//工具库
var util = require('./util');
... ... @@ -17,8 +18,6 @@ var ev = require('./event');
var config = require('./config');
require('yoho.json2');
//sdk 版本
var version = config.version;
... ... @@ -71,16 +70,8 @@ var browserInfo = {
sy: window.navigator.platform, //systemInfo
ce: window.navigator.cookieEnabled, //cookiesEnabled
fv: flash.f ? flash.v : 0 //flashVersion
};
(function() {
var hm = document.createElement("script");
hm.src = "http://pv.sohu.com/cityjson?ie=utf-8";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
//入口方法
var _yas = function(initTime, version, tid, uid, geo, selector) {
custInfo.ak = tid;
... ...
<!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