码迷,mamicode.com
首页 > 其他好文 > 详细

VUE搭建

时间:2018-10-09 11:43:04      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:log   port   const   nbsp   ons   ensure   bpa   page   vue   

  1. 分模块加载路由    const home = r => require.ensure([], () => r(require(‘../page/home/home‘)), ‘home‘)通过webpack来实现;
    const Login = () => import(‘@/components/Login‘) 通过import来实现懒加载

VUE搭建

标签:log   port   const   nbsp   ons   ensure   bpa   page   vue   

原文地址:https://www.cnblogs.com/xieyong25/p/9759225.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!