摘要: navigator包含有关浏览器的信息。 navigator.userAgent 返回由客户机发送服务器的user-agent头部的值。 阅读全文
posted @ 2017-05-11 11:59 三里路异乡客 阅读(146) 评论(0) 推荐(0)
摘要: 1、Touch事件简介pc上的web页面鼠 标会产生onmousedown、onmouseup、onmouseout、onmouseover、onmousemove的事件,但是在移动终端如 iphone、ipod Touch、ipad上的web页面触屏时会产生ontouchstart、ontouch 阅读全文
posted @ 2017-05-11 11:42 三里路异乡客 阅读(208) 评论(0) 推荐(0)
摘要: javaScript中的in运算符 检查某个对象是否具有给定名称的属性(直接或动过对象的原型),可能返回 true, false、0 、“” 等; 如 “ontouchstart" in document.documentElement; ”onclick“ in document.document 阅读全文
posted @ 2017-05-11 10:58 三里路异乡客 阅读(264) 评论(0) 推荐(0)