摘要: if (typeof Browser == "undefined") Browser = {};Browser = { Versions : function() { var u = navigator.userAgent, app = navigator.appVersion; return {// 移动终端浏览器版本信息 trident : u.indexOf('Trident') > -1, // IE内核 presto : u.indexOf('Presto') > -1, // opera内核 webKit : u.in 阅读全文
posted @ 2014-03-19 16:30 浮生如斯 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 一、获取当前Script附带的参数getScriptArgs: function() { //获取多个参数 var scripts = document.getElementsByTagName("script"), script = scripts[scripts.length - 1], //因为当前dom加载时后面的script标签还未加载,所以最后一个就是当前的script src = script.src, reg = /(?:\?|&)(.*?)=(.*?)(?=&|... 阅读全文
posted @ 2014-03-19 16:25 浮生如斯 阅读(688) 评论(0) 推荐(0) 编辑
摘要: if (typeof CNLive == "undefined") CNLive = {};CNLive.AJAX2 = { xmlRequest : null, requestUrl : "", initRequest : function(method) { this.xmlRequest = new XMLHttpRequest(); }, sendRequest : function(method) { if (this.xmlRequest == null) { this.initRequest(method); } if ("wit 阅读全文
posted @ 2014-03-19 16:20 浮生如斯 阅读(196) 评论(0) 推荐(0) 编辑