![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js事件
qq_39871330
这个作者很懒,什么都没留下…
展开
-
Flexible实现手淘H5页面的rem布局适配
前言项目加上了缩放比例, 但是ionic本身很多组件都是px的 导致在github上的插件总是这样那样的问题弄得心很累, 一气之下。直接全部替换成了淘宝的H5方案,反正改的也不少导入方案1. 直接阿里云CDN在单页index.html中加入<script src="http://g.tbcdn.cn/mtb/lib-flexible/0.3.4/??flexible_css.js,flexi...转载 2018-04-03 10:10:45 · 380 阅读 · 0 评论 -
oncopy 拷贝复制事件与禁止复制
如何实现整个网页复制时跳转到微信 $(function(){ document.body.oncopy =function(){ window.location.href='weixin://'; //location.herf=指向一个链接或应用 } });禁止复制<input type="text" oncopy="myFunc...原创 2018-03-29 17:28:10 · 7620 阅读 · 0 评论 -
判断是否是pc或移动端
<script type="text/javascript"> var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) ...原创 2018-05-25 13:28:43 · 834 阅读 · 0 评论