![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue.js
不懂也不问
这个作者很懒,什么都没留下…
展开
-
vue脚手架
安装vue cli npm install @vue/cli -g 一,Vue-router 在index.js中添加路由 1,添加 path: ‘/profile’, name:‘Profile’, component:()=>import(’…/views/Profile’) //导入路径 2,在页面添加 router-link 标签 标签可添加 tag设置 标签样式 如tag=“button” 3,(1)路由传参 在添加路由处path:‘ ‘/user/:id’,’ //添加:id(原创 2020-10-04 13:28:31 · 87 阅读 · 0 评论 -
Vue.js
每个 Vue 应用都需要通过实例化 Vue 来实现。语法格式如下: var vm = new Vue({ // 选项 }) data 用于定义属性。 methods用于定义的函数,可以通过 return 来返回函数值。 {{ }} 用于输出对象属性和函数返回值 id选择器 <div id = "vue_det"></div> el: '#vue_det' 以下是实...原创 2019-07-27 09:25:10 · 110 阅读 · 0 评论