摘要: axios.all([ axios.get('https://api.github.com/xxx/1'), axios.get('https://api.github.com/xxx/2') ]) .then(axios.spread(function (userResp, reposResp) 阅读全文
posted @ 2019-12-10 17:04 我自是年少 阅读(1970) 评论(0) 推荐(0) 编辑
摘要: 懒加载模式 大项目中,为了提高初始化页面的效率,路由一般使用懒加载模式,一共三种实现方式。(1)第一种写法: component: (resolve) => require(['@/components/One'], resolve) (2)第二种写法: component: () => impor 阅读全文
posted @ 2019-12-10 16:55 我自是年少 阅读(564) 评论(0) 推荐(0) 编辑
摘要: <!-- 小漏斗 搜索��--> <span @click.stop="showMapText" class="maptest" :class="checkMap ? 'activeDiv' : ''"> <i class="iconfont icon-showcolor title_span">< 阅读全文
posted @ 2019-12-10 11:01 我自是年少 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 看了网上很多资料,对vue的computed讲解自己看的都不是很清晰,今天忙里抽闲,和同事们又闲聊起来,对computed这个属性才有了一个稍微比较清晰的认识,下面的文章有一部分是转自: https://www.w3cplus.com/vue/vue-computed-intro.html © w3 阅读全文
posted @ 2019-12-10 10:07 我自是年少 阅读(1958) 评论(0) 推荐(0) 编辑