unshift函数问题
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
报错::::test1.unshift is not a function; [Component] Event Handler Error @ pages/test/test#bound test
TypeError: test1.unshift is not a function源码:
test: function(){
let test1 = wx.getStorageSync(‘save’) || [];
test1.unshift(this.value);
wx.setStorageSync(‘test1’, test1)
},
3 回复