# vue-tutorial **Repository Path**: 852376859/vue-tutorial ## Basic Information - **Project Name**: vue-tutorial - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-08-16 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-tutorial > A Vue.js project ## Build Setup ``` bash # install dependencies npm install # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for production and view the bundle analyzer report npm run build --report ``` For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). ## Vue2.0与1.0不同的地方(一) 一、vue-router路由的参数由对象统一变为了数组要注意。还有则是实例化vue的el参数已经不能设置html和body了,因为在vue2中是会替换我们指定的标签 二、我们必须在实例化vue的时候指定渲染什么组件,以前我们是通过路由来指定如router.start(App, '#app'),而在vue2中则不需要了 ## Vue2.0与1.0不同的地方(二) 以前我们可以直接通过写a标签 然后写v-link属性进行路由跳转,在vue2中改为了写标签再写对应属性(to)进行跳转