
vue
小北在远方
小小程序员一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
vue搭建开发环境
第一步:进入文件目录 第二步:在命令窗口输入: npm install -g cnpm –registry=https://registry.npm.taobao.org 第三步:cnpm install -g vue-cli 第四步:vue -V 第五步:vue init webpack demo1 第六步:进入目录 输入npm run dev 页面输入:1...原创 2018-08-24 14:30:29 · 190 阅读 · 0 评论 -
vue搭建开发环境命令
条件:电脑已将安装和配置了nodejs环境 npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm install vue -g vue init webpack-simple mytest cd mytest npm install npm run dev locallhost:8080...翻译 2018-09-02 12:20:30 · 177 阅读 · 0 评论 -
vue前后端端口不一致解决方案
在config index.js文件中 引入如下代码即可 proxyTable: { '/api': { target: 'http://localhost:3000',//要访问的后端接口 changeOrigin: true, pathRewrite: { '^/api': '/' //这里的配置是正则表达式,以/api开头的将会被用用‘/api'替换掉,假如后台文档...转载 2019-03-16 19:25:54 · 14942 阅读 · 2 评论 -
前后端跨域问题解决方案express
在nodejs中app.js内添加如下代码就可以解决了 app.all('*', function (req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "X-Requested-With"); res.header("Acc...转载 2019-03-16 19:27:29 · 577 阅读 · 0 评论 -
vue 引入jquery bootstrap参考地址
https://www.cnblogs.com/hedeyong/p/7864842.html转载 2019-03-24 10:54:27 · 180 阅读 · 0 评论