摘要: 1,路由懒加载写法: // 我所采用的方法,个人感觉比较简洁一些,少了一步引入赋值。 const router = new VueRouter({ routes: [ path: '/app', component: () => import('./app'), // 引入组件 ] }) // Vu 阅读全文
posted @ 2018-11-13 21:11 控心frey 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 一,创建对象的方法 在了解原型链之前,首先先了解一下创建对象的几种方式,介绍以下三种: <script type="text/javascript"> // 第一种方式:字面量 var o1 = {name: 'o1'} var o2 = new Object({name: 'o2'}) // 第二 阅读全文
posted @ 2018-11-13 17:51 控心frey 阅读(155) 评论(0) 推荐(0) 编辑