10 2016 档案

摘要:方法如下:function parseURL(url) { var a = document.createElement('a'); //创建一个链接 a.href = url; return { source: url, protocol: a.protocol.replace(':',''), 阅读全文
posted @ 2016-10-31 14:33 轻风飞扬545 阅读(676) 评论(1) 推荐(0)
摘要:原代码: var interv=setInterval(function(){ alert("setInterval执行"); },2000) clearInterval(interv); 解决办法: interv2=setInterval(function(){ if(interv2==0){re 阅读全文
posted @ 2016-10-31 14:18 轻风飞扬545 阅读(4274) 评论(1) 推荐(0)
摘要:http://www.dowebok.com/77.html 阅读全文
posted @ 2016-10-31 14:09 轻风飞扬545 阅读(126) 评论(0) 推荐(0)
摘要:一、场景描述: 1.A/B两个层上下z轴重叠。 2.上层的A点击后消失或移开。(这一点很重要) 3.B元素本身有默认click事件(如a标签) 或 B绑定了click事件。 在以上情况下,点击A/B重叠的部分,就会出现点透的现象。 二、点透现象的分析 在移动端不使用click而用touch事件代替触 阅读全文
posted @ 2016-10-31 14:03 轻风飞扬545 阅读(261) 评论(0) 推荐(0)
摘要:http://www.daqianduan.com/6281.html 阅读全文
posted @ 2016-10-31 11:37 轻风飞扬545 阅读(105) 评论(0) 推荐(0)
摘要:body:before { content: ' '; position: fixed; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; background: url(bj3.jpg) center 0 no-repeat; backgroun 阅读全文
posted @ 2016-10-31 10:47 轻风飞扬545 阅读(117) 评论(0) 推荐(0)
摘要:String.prototype.queryString= function(name) { var reg=new RegExp("[\?\&]" + name+ "=([^\&]+)","i"),r = this.match(reg); return r!==null?unescape(r[1] 阅读全文
posted @ 2016-10-13 09:25 轻风飞扬545 阅读(270) 评论(0) 推荐(0)