摘要: <script type="text/javascript"> var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 var isiOS 阅读全文
posted @ 2020-03-31 23:20 85455 阅读(600) 评论(0) 推荐(0)
摘要: 1.禁止图片点击放大 img { pointer-event:none } 2.禁止ios识别长串数字为电话 <meta name="format-detection" content="telephone=no" /> 3.禁止复制选中文本 -webkit-user-select:none 4.上 阅读全文
posted @ 2020-03-31 23:14 85455 阅读(143) 评论(0) 推荐(0)
摘要: 前言vue路由组件我使用的vue-routerweb服务器使用nginx Vue-router配置vue-router 默认 hash 模式 —— 使用 URL 的 hash 来模拟一个完整的 URL,于是当 URL 改变时,页面不会重新加载http://localhost:8080/#/Hello 阅读全文
posted @ 2020-03-31 22:22 85455 阅读(810) 评论(0) 推荐(0)
摘要: 设置cookie: document.cookie='name=zhangsan' document.cookie='age=18' 获取cookie document.cookie // name=zhangsan; age=18 阅读全文
posted @ 2020-03-31 22:20 85455 阅读(923) 评论(0) 推荐(0)
摘要: JS实现继承 JavaScript 定义一个父类: // 定义一个动物类 function Animal (name) { // 属性 this.name = name || ‘Animal’; // 实例方法 this.sleep = function(){ console.log(this.na 阅读全文
posted @ 2020-03-31 12:07 85455 阅读(132) 评论(0) 推荐(0)