摘要: 1.key重复返回一个数组 阅读全文
posted @ 2019-10-31 13:50 博客小鹏鹏 阅读(3218) 评论(0) 推荐(0) 编辑
摘要: 此封装方法的优点: 1、实现async/await ; (小程序对async已经有非常好的支持,async也是目前公认的解决异步和回调地狱的终极解决方案) 2、具有高度的可配置性,不管你是定好的baseUrl,还是对接多个系统的Url都非常简单; 3、利用解构参数的特点使得参数的可读性非常强,极大降 阅读全文
posted @ 2019-10-11 14:24 博客小鹏鹏 阅读(2439) 评论(2) 推荐(0) 编辑
摘要: 本地运行可以,线上部署出现chunk {n} failed: 1.组件内使用懒加载可能会导致 2.主要原因:电信dns劫持,换一台服务器部署 阅读全文
posted @ 2019-10-10 14:47 博客小鹏鹏 阅读(3631) 评论(0) 推荐(0) 编辑
摘要: 完美解决: https://blog.csdn.net/Zhooson/article/details/89919614 阅读全文
posted @ 2019-10-10 14:29 博客小鹏鹏 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 下载地址: https://download.jetbrains.com/idea/ideaIU-2018.3.6.exe?_ga=2.20108145.895531560.1565749988-1775035268.1565749988 阅读全文
posted @ 2019-08-14 10:44 博客小鹏鹏 阅读(303) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_37055675/article/details/85047451 阅读全文
posted @ 2019-08-13 15:14 博客小鹏鹏 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 解决方案: // 请求发前拦截,header中添加token axios.interceptors.request.use(res => { res.headers.common['X-Token'] = storage.get('token') || '' return res; }); 非常简单 阅读全文
posted @ 2019-06-27 17:18 博客小鹏鹏 阅读(10838) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a155505f6662 阅读全文
posted @ 2019-06-26 14:38 博客小鹏鹏 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 话不多说上代码,相当于实现一个数据结构中的队列 / 栈: 阅读全文
posted @ 2019-06-17 21:09 博客小鹏鹏 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.目录结构 demo-one 和 demo-two 一起公用一些属性 和 方法 存在demo-beh.js中 需要像模块一样导出 2.调用的方法: 阅读全文
posted @ 2019-06-17 15:27 博客小鹏鹏 阅读(1492) 评论(0) 推荐(0) 编辑