![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
哈哈42696
这个作者很懒,什么都没留下…
展开
-
JS禁止页面中的一些操作事件
禁止鼠标右键:oncontextmenu="return false";禁止选择:onselectstart="return false";禁止拖放:ondragstart="return false";禁止拷贝:oncopy=document.selection.empty() ;禁止复制:oncopy = "return false";禁止保存:<noscript><...转载 2018-11-16 15:12:05 · 1032 阅读 · 0 评论 -
判断移动端类型及是否是微信内置浏览器 navigator.userAgent
userAgent 属性是一个只读的字符串,声明了浏览器用于 HTTP 请求的用户代理头的值。.如何判断微信内置浏览器,首先需要获取微信内置浏览器的User Agent,经过在 iPhone 上微信的浏览器的检测,它的 User Agent 是:Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_3 like Mac OS X) AppleWebKit/536.26 ...转载 2018-11-22 17:59:49 · 1413 阅读 · 1 评论