![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Vue
weixin_40264344
这个作者很懒,什么都没留下…
展开
-
Vue项目单元自测
第一部分: 搭建基于 jest 的 vue 单元测试环境 jest 包含了 karma + mocha + chai + sinon 的所有常用功能,零配置开箱即用。 1.安装依赖 (默认已有Bable依赖) npm install jest vue-jest babel-jest @vue/test-utils -D 2.编写 jest 配置文件 // ./test/unit/...原创 2019-12-27 20:10:20 · 390 阅读 · 0 评论 -
Vue 锚点滚动实现(Velocity采坑)
参照https://codepen.io/xwLyc/pen/WgWyjw?editors=0010的例子,发现并不能实现锚点滚动效果。 点击报错 : VelocityJS: First argument (scroll) was not a property map, a known action, or a registered redirect. Aborting. Zt Goog...原创 2019-04-25 17:35:08 · 1350 阅读 · 0 评论 -
Axios post 请求400
在封装完Axios后,发现post请求出现400. 找原因发现是请求头的问题。请求的 Content-Type:是 application/json;charset=UTF-8 解决方案:设置post请求头,将参数转换为query参数. 参考了大神的文章:https://blog.csdn.net/csdn_yudong/article/details/79668655#_78 ...原创 2019-05-11 14:27:51 · 3421 阅读 · 0 评论