A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

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,即可自动在,默认浏览器打开,并支持,自动更新!!!
以上文章转载自网络

1 个回复

倒序浏览
有问题联系学姐
DKA-2018
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马