![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
Jepson_鹏鹏
这个作者很懒,什么都没留下…
展开
-
vue基础
vue 组件一个 .vue 的组件的页面结构 <template> 第一部分:放置 html 结构 </template> <script> 第二部分:放 js 代码, 这个 js 代码分为两块: 1. 这个vue组件是一个模块,所以需要导入其他模块 任何东西都可以作为模块导入(.css .less .scss .v原创 2017-01-23 14:35:41 · 665 阅读 · 0 评论 -
vue-router
概念:什么是路由 根据不同的url 加载不同的 vue 组件什么是路由规则 在浏览器上看到的 #/xxx 就是路由规则路由规则的几种表现形式 无参路由规则:/Home/Home/news有参路由规则/Home/news/:id -> 传递 id 值如: /Home/news/15使用:注意:这个步骤是 vue2.x + vue-router2.x 1. 安装 cnpm inst原创 2017-01-23 14:36:29 · 3604 阅读 · 0 评论