03 2020 档案
webstrom弹出Server's certificate is not trusted 解决方法
摘要:引起这个的根本原因是因为你破解了idea,在本地hosts配置了映射,然后idea检测出来弹出警告 服务器证书不可用,不让他弹出的方法。打开idea >file-->Settings然后搜索Server Certificates把下图中的选项勾上。
阅读全文
this.setData is not a function;at pages/index/index onLoad function;at api request success callback function TypeError: this.setData is not a function
摘要:wx.request
阅读全文
ESLint那些坑
摘要:Assignment to property of function parameter 'item' 解决:遍历时不要直接item.xxx 修改,复制一个对象,在对象上修改,如图 nexpected chained assignment 解决:分开赋值,如图 Expected to return
阅读全文
vue组件中倒计时,刷新页面不会从头开始
摘要:开启倒计时,直接保存到vuex中,且存储到本地持久化 // state.js const runTime = localStorage.getItem('time'); paymentRunTime:runTime // mutations.js TimeReduction(state) { thi
阅读全文