摘要:
1 if (iframe.get(0).attachEvent) { 2 iframe.get(0).attachEvent("onload", function () { 3 var new_h = iframe.get(0).contentWindow.document.documentElement.offsetHeight ... 阅读全文
posted @ 2017-10-06 15:22
左转右转
阅读(199)
评论(0)
推荐(0)
摘要:
1 function IsPC() { 2 //navigator:包含浏览器信息 3 var userAgentInfo = navigator.userAgent; 4 var Agents = ["Android", "iPhone", 5 "SymbianOS", "Windows Phon 阅读全文
posted @ 2017-10-06 15:16
左转右转
阅读(236)
评论(0)
推荐(0)
摘要:
1 $.ajax({ 2 type: "GET", 3 url: "Login.ashx", 4 dataType: "text", 5 cache: false,//true使用缓存 。 false不使用缓存 6 async: true,//使用 true beforeSend方法会有延迟现象 7 阅读全文
posted @ 2017-10-06 15:15
左转右转
阅读(192)
评论(0)
推荐(0)
摘要:
1 function removeClass(obj, aClass) { 2 var re = new RegExp('\\b' + aClass + '\\b'); 3 if (obj.className != '') { 4 5 if (re.test(obj.className)) { 6 阅读全文
posted @ 2017-10-06 15:09
左转右转
阅读(1478)
评论(3)
推荐(0)
摘要:
1.onselectstart 这个事件主要是用于禁止选择网页中的文字。代码为: document.onselectstart =function(){ return false; } 另外ff/opera不支持此事件,ff可以用css控制:css: body { -moz-user-select: 阅读全文
posted @ 2017-10-06 15:05
左转右转
阅读(434)
评论(0)
推荐(0)

浙公网安备 33010602011771号