摘要:
今天尝试给同一个对象绑定多个事件: document.getElementById("a").onfocus= function(){ alert("1") }.onclick= function(){ alert("2") } 发现弹出2,改变focus和click的顺序后依旧如此,只有书写顺序的 阅读全文
posted @ 2016-10-20 20:09
炎泽
阅读(133)
评论(0)
推荐(0)
摘要:
//判断是ios还是androidvar system;var ua = navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { system= "ios"; } else if (/android/.test(ua)) { system= "android"; } 阅读全文
posted @ 2016-10-20 17:58
炎泽
阅读(202)
评论(0)
推荐(0)

浙公网安备 33010602011771号