上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 报错信息: 10% building modules 1/1 modules 0 activeevents.js:182 throw er; // Unhandled 'error' event 原因:host文件被修改,127.0.0.1未指向 localhost,重新修改host 即可。 阅读全文
posted @ 2018-03-06 11:07 Cynthia娆墨旧染 阅读(2556) 评论(0) 推荐(0) 编辑
摘要: mac下安装IDE后,出现“输入光标变成块状”的情况,是因为安装的时候装了ideaVim插件,改为竖线光标的方法:把ideaVim插件去掉 阅读全文
posted @ 2018-02-02 10:36 Cynthia娆墨旧染 阅读(3488) 评论(0) 推荐(0) 编辑
摘要: 1.情景:抓包的域名下 全部是unknown,右侧出现了乱码 2.查看unknown的notes里面:SSL Proxying not enabled for this host:enable in Proxy Setting,SSL locations 3.解决方法:proxy -> ssl pr 阅读全文
posted @ 2018-01-22 10:52 Cynthia娆墨旧染 阅读(42072) 评论(0) 推荐(2) 编辑
摘要: 备注:注意里面的‘--’编辑器里出来的 可能有差异,贴到命令行里的话,请自行手输下。 阅读全文
posted @ 2017-12-14 10:51 Cynthia娆墨旧染 阅读(326) 评论(0) 推荐(1) 编辑
摘要: 环境:vue2.x axios 1.如果只是前端自己用,那么可以用 encodeURIComponent(string) 存 ,用decodeURIComponent(string)取。 2.遇到一种情况,接口需要带上一段特殊的cookie,里面有含有特殊字符 / + ,这些特殊字符在游览器里被转义 阅读全文
posted @ 2017-12-13 11:37 Cynthia娆墨旧染 阅读(2257) 评论(1) 推荐(1) 编辑
摘要: let arr = [ { Category:'A', Amount:1, },{ Category:'B', Amount:2, },{ Category:'A', Amount:3, },{ ... 阅读全文
posted @ 2017-12-13 11:24 Cynthia娆墨旧染 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 这是因为,引用的插件在node_modules里,并不在vue-cli的es6编译范围内,所以语法报错,修改方法: 阅读全文
posted @ 2017-11-30 11:44 Cynthia娆墨旧染 阅读(3000) 评论(0) 推荐(1) 编辑
摘要: 1.接口返回的流和头部: 2.下载流文件的代码 方法一:是用了插件 https://github.com/kennethjiang/js-file-download 方法二:是用了 blob 不管哪种方法,记得设置 responseType !!!!! 附上代码: 阅读全文
posted @ 2017-11-30 09:57 Cynthia娆墨旧染 阅读(43272) 评论(34) 推荐(2) 编辑
摘要: elementUI官方案例:http://element.eleme.io/#/zh-CN/component/date-picker (1)效果图: (2)安装和引入 (3)到自己的组件demo.vue里使用: 阅读全文
posted @ 2017-11-07 15:52 Cynthia娆墨旧染 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: FE_CMD ————— * >>>>>>>> Vue ____________________________________________________________________________________________________________________________________________ $ npm install --global vue-c... 阅读全文
posted @ 2017-11-06 14:51 Cynthia娆墨旧染 阅读(611) 评论(3) 推荐(2) 编辑
摘要: var content = '23px' content = content.replace(/(\d+)px/g, function(s, t) { s = s.replace('px', ''); var value = parseInt(s) * 0.001; // 100px = 1rem return value + "rem"; //0.23rem }); ... 阅读全文
posted @ 2017-08-18 11:41 Cynthia娆墨旧染 阅读(835) 评论(0) 推荐(0) 编辑
摘要: 推荐这个 阅读全文
posted @ 2017-08-17 18:30 Cynthia娆墨旧染 阅读(807) 评论(2) 推荐(0) 编辑
摘要: 实例: 阅读全文
posted @ 2017-08-17 14:38 Cynthia娆墨旧染 阅读(4346) 评论(6) 推荐(0) 编辑
摘要: 官方用例:https://router.vuejs.org/zh-cn/advanced/scroll-behavior.html import Vue from 'vue' import Router from 'vue-router' import index from '@/components/index.vue' Vue.use(Router) const router... 阅读全文
posted @ 2017-08-17 14:36 Cynthia娆墨旧染 阅读(1072) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-08-03 14:35 Cynthia娆墨旧染 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 开启HTML5 History Mode后,尤其需要server端的支持,官方文档里就有介绍:(传送门: https://router.vuejs.org/zh-cn/essentials/history-mode.html) 阅读全文
posted @ 2017-08-01 16:34 Cynthia娆墨旧染 阅读(1063) 评论(0) 推荐(0) 编辑
摘要: $scope.$watch('custArea', function(newValue, oldValue) { angular.forEach(newValue, function(item, key) { if($scope.custArea.indexOf("000000") > -1){ //... 阅读全文
posted @ 2017-08-01 16:30 Cynthia娆墨旧染 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1.脚手架:官方的vue-cli已经很方便了 2.路由:vue-router : https://router.vuejs.org/zh-cn/essentials/named-routes.html 3.http:axios : https://github.com/imcvampire/vue- 阅读全文
posted @ 2017-07-31 11:03 Cynthia娆墨旧染 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 在项目根路径创建文件 .babelrc。内容为 阅读全文
posted @ 2017-07-17 16:37 Cynthia娆墨旧染 阅读(258) 评论(0) 推荐(0) 编辑
摘要: github地址: 简介 安装 在package.json里修改script 生成react默认开发目录 pages和static 项目启动 自动打包 待续... 阅读全文
posted @ 2017-07-17 13:32 Cynthia娆墨旧染 阅读(374) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页