vue 完整代碼 這是一個完整的vue案例,但是介面似乎都失效了,單是代碼本身還是很有參考價值的呦!~ 裡面包含了:vue,vue router,。。。。,還是直接看json文件吧 都用到了這些技術,嘿嘿嘿 所以來說還是很值得一看的,如果會寫介面的話,還可以自己寫一個介面代替上去 OK,接下來就是就 ...
vue-完整代碼
這是一個完整的vue案例,但是介面似乎都失效了,單是代碼本身還是很有參考價值的呦!~
裡面包含了:vue,vue-router,。。。。,還是直接看json文件吧
{
"name": "01.webpack-study",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack-dev-server --open --port 3000 --hot --host 127.0.0.1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-component": "^0.10.1",
"babel-plugin-transform-remove-strict-mode": "^0.0.2",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1",
"css-loader": "^0.28.7",
"file-loader": "^1.1.5",
"html-webpack-plugin": "^2.30.1",
"less": "^2.7.3",
"less-loader": "^4.0.5",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6",
"style-loader": "^0.19.0",
"url-loader": "^0.6.2",
"vue-loader": "^13.3.0",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.8.1",
"webpack-dev-server": "^2.9.3"
},
"dependencies": {
"bootstrap": "^3.3.7",
"mint-ui": "^2.2.9",
"moment": "^2.19.1",
"vue": "^2.5.2",
"vue-preview": "^1.0.5",
"vue-resource": "^1.3.4",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
}
}
都用到了這些技術,嘿嘿嘿
所以來說還是很值得一看的,如果會寫介面的話,還可以自己寫一個介面代替上去
OK,接下來就是就是具體的代碼了
由於代碼太多,只好把他放在另一個地方了,
不要忘了使用之前install哦,不然什麼都看不到,
install後運行:npm run dev
,即可自動在,預設瀏覽器打開,並支持,自動更新!!!