当前浏览器不支持canvas,请更换浏览器后再试
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 1.最基本的去重方法 思路:定义一个新数组,并存放原数组的第一个元素,然后将元素组一一和新数组的元素对比,若不同则存放在新数组中。 function unique(arr){ var res = [arr[0]]; for(var i=1;i<arr.length;i++){ var repeat 阅读全文
posted @ 2019-03-19 09:37 高亮uncle 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 首先在demo下面的components下面新建一个test.vue组件 test组件代码 <template> <div class="test_box"> <p @click="go">测试组件内部守卫的作用,点击跳到HelloWorld</p> </div> </template> <scri 阅读全文
posted @ 2019-03-12 16:12 高亮uncle 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 1、日期问题 对于yyyy-mm-dd hh:mm:ss 这种格式在ios系统不识别 时间格式化的时候,在浏览器端处理好好的,到了手机端,就变成NAN,或者null,这种情况,是ios系统不能转化这种类型的时间。 `let date = new Date('2019-02-28 18:33:24') 阅读全文
posted @ 2019-03-08 15:20 高亮uncle 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 添加正则判断条件: MessageBox({ $type:'prompt', title:'输入验证码', message:'请填写您收到的验证码', closeOnClickModal:false, //点击model背景层不关闭MessageBox showCancelButton:false, 阅读全文
posted @ 2019-03-06 16:34 高亮uncle 阅读(486) 评论(0) 推荐(0) 编辑
摘要: sessionStorage.setItem("key","value"); // 存 sessionStorage.getItem("key"); // 取 sessionStorage.removeItem("key"); // 删除 sessionStorage.removeItem("key 阅读全文
posted @ 2019-01-07 09:22 高亮uncle 阅读(742) 评论(0) 推荐(0) 编辑
摘要: 申请JSAPI的开发者key 申请地址:http://lbs.amap.com/dev/key 引入高德地图JavaScript API文件: <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=您申请的 阅读全文
posted @ 2018-12-14 17:45 高亮uncle 阅读(17233) 评论(0) 推荐(0) 编辑
摘要: 时间戳转时间 var timestamp4 = new Date(1472048779952);//直接用 new Date(时间戳) 格式转化获得当前时间 console.log(timestamp4); console.log(timestamp4.toLocaleDateString().re 阅读全文
posted @ 2018-11-27 17:40 高亮uncle 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 遇到的问题 在开发过程中会遇到频率很高的事件或者连续的事件,如果不进行性能的优化,就可能会出现页面卡顿的现象,比如: 鼠标事件:mousemove(拖曳)/mouseover(划过)/mouseWheel(滚屏) 键盘事件:keypress(基于ajax的用户名唯一性校验)/keyup(文本输入检验 阅读全文
posted @ 2018-11-12 10:20 高亮uncle 阅读(297) 评论(0) 推荐(0) 编辑
摘要: <a href="tencent://message/?uin=xxxxxxxxxxxxxx&Site=400301.com&Menu=yes">联系客服</a> pc打开的方式↑ 手机唤起qqAPP的方式↓ <a href="mqqwpa://im/chat?chat_type=wpa&uin=x 阅读全文
posted @ 2018-11-09 17:29 高亮uncle 阅读(539) 评论(0) 推荐(0) 编辑
摘要: A:router路由配置 export default new Router({ routes: [ { path: '/home', name: 'Home', component: Home, children:[ {path:'home1',component:Home1}, {path:'h 阅读全文
posted @ 2018-11-05 09:46 高亮uncle 阅读(2285) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页