方法如下:function parseURL(url) { var a = document.createElement('a'); //创建一个链接 a.href = url; return { source: url, protocol: a.protocol.replace(':',''), Read More
posted @ 2016-10-31 14:33
轻风飞扬545
Views(664)
Comments(1)
Diggs(0)
原代码: var interv=setInterval(function(){ alert("setInterval执行"); },2000) clearInterval(interv); 解决办法: interv2=setInterval(function(){ if(interv2==0){re Read More
posted @ 2016-10-31 14:18
轻风飞扬545
Views(4269)
Comments(1)
Diggs(0)
http://www.dowebok.com/77.html Read More
posted @ 2016-10-31 14:09
轻风飞扬545
Views(124)
Comments(0)
Diggs(0)
一、场景描述: 1.A/B两个层上下z轴重叠。 2.上层的A点击后消失或移开。(这一点很重要) 3.B元素本身有默认click事件(如a标签) 或 B绑定了click事件。 在以上情况下,点击A/B重叠的部分,就会出现点透的现象。 二、点透现象的分析 在移动端不使用click而用touch事件代替触 Read More
posted @ 2016-10-31 14:03
轻风飞扬545
Views(252)
Comments(0)
Diggs(0)
http://www.daqianduan.com/6281.html Read More
posted @ 2016-10-31 11:37
轻风飞扬545
Views(105)
Comments(0)
Diggs(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 Read More
posted @ 2016-10-31 10:47
轻风飞扬545
Views(114)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号