摘要: //获取地理位置 wx.getLocation({ type: 'wgs84', success: function (res) { console.log(res) var latitude = res.latitude var longitude = res.longitude _this.gl 阅读全文
posted @ 2018-07-30 16:47 Y-HJ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: daterangepicker 阅读全文
posted @ 2018-07-30 11:32 Y-HJ 阅读(323) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/ricklz/p/9216395.html 阅读全文
posted @ 2018-07-28 20:27 Y-HJ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1.遍历数组方法 一,for(index in arr){ arr[index] } 二, arr.forEach(function(item,index)){} 三, var arr2 = arr.map(function(item){ return item }) 返回数组 四, var arr 阅读全文
posted @ 2018-06-11 10:17 Y-HJ 阅读(109) 评论(0) 推荐(0) 编辑
摘要: <div class="menu-wrapper" ref="menuWrapper" > this.$refs.menuWrapper 从新渲染完 在执行 this.$nextTick( () => {console.log(1111)this._initBetter()}) 阅读全文
posted @ 2018-04-09 16:34 Y-HJ 阅读(198) 评论(0) 推荐(0) 编辑
摘要: function pushHistory(){ var state = { title: "title", url: "#" } window.history.pushState(state, "title", "#"); } pushHistory(); window.addEventListen 阅读全文
posted @ 2018-04-09 14:45 Y-HJ 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1.先安装package control 按ctrl + shift + 调出 2.Emmet插件 vue中不起作用问题? 3.sublimeTpml 模板 4.HTML/CSS/JS ... 格式标准 阅读全文
posted @ 2018-03-28 14:08 Y-HJ 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 预备:先安装淘宝镜像 1.安装 vue-cli => cnpm install vue-cli 2.初始化 vue init webpack YHJ(项目名字) 3.安装对应的模块 插件 cnpm install 4.路由使用 (路由当前样式 linkActiveClass: 'active') ( 阅读全文
posted @ 2018-03-27 09:16 Y-HJ 阅读(250) 评论(0) 推荐(0) 编辑
摘要: function debounce(fn,delay){ var time = null; return function(){ var context = this; var args = argument; clearTimeout(time); time = setTimeout(functi 阅读全文
posted @ 2018-03-15 11:06 Y-HJ 阅读(107) 评论(0) 推荐(0) 编辑
摘要: function pushHistory(){ var state = { title: "title", url: "#" } window.history.pushState(state, "title", "#"); } pushHistory(); function goBack(){ va 阅读全文
posted @ 2018-03-15 09:20 Y-HJ 阅读(320) 评论(0) 推荐(0) 编辑