随笔分类 -  vue

摘要:1、后端处理允许跨域 2、反向代理跨域 代理服务器英文全称是Proxy Server,其功能就是代理网络用户去去的网络信息。形象的说:它是网络信息的中转站。 vue中设置代理: 1.config/index.js 2.在dev里添加proxyTable dev: { env: require('./ 阅读全文
posted @ 2018-09-06 10:28 灬醉风 阅读(269) 评论(0) 推荐(0)
摘要:一直都觉得angularjs和vue是想类似的,今天在限制加载的数据条数时发现 其不同,话不多说,直接看代码: 1.angularjs <li ng-repeat="item in dataList | limitTo:6"> <p>{{item.name}}</p> <span class="ov 阅读全文
posted @ 2018-06-29 18:18 灬醉风 阅读(88) 评论(0) 推荐(0)
摘要:解决方法: 1、找到build文件夹 下的webpack.prod.conf.js文件 2、注释new OptimizeCSSPlugin({ cssProcessorOptions: config.build.productionSourceMap ? { safe: true, map: { i 阅读全文
posted @ 2018-06-14 10:53 灬醉风 阅读(149) 评论(0) 推荐(0)
摘要:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><script src="js/vue.js"></script></head><body><div id="vm1"><big-img 阅读全文
posted @ 2017-11-21 20:00 灬醉风 阅读(812) 评论(0) 推荐(0)