摘要: 之前的写法 今天刚搞明白 如何通过webpack 去动态加载路由 网上有很多方法,但是挺多都不好用,所以我把自己成功实现的 贴出来。 require.context(directory, useSubdirectories = false, regExp = /^\.\//) 参数说明: 1. 你要 阅读全文
posted @ 2018-12-11 15:53 一种风度 阅读(4521) 评论(0) 推荐(0) 编辑
摘要: 组件代码(临时粘出来) 1 <template> 2 <div class="bgView"> 3 <div :class="['json-view', length ? 'closeable' : '']" :style="'font-size:' + fontSize+'px'"> 4 <spa 阅读全文
posted @ 2018-12-11 09:36 一种风度 阅读(5334) 评论(1) 推荐(2) 编辑