- Cannot read property 'pronunciations' ofundefind?
[图片] onShow: function() { this.setData({ today_word: wx.getStorageSync('today_word'), task_detail: wx.getStorageSync("task_detail"), }) if (this.data.today_word.length < this.data.day_num) { this.setData({ goto_choice: true }) } else { this.setData({ goto_choice: false }) //加载第一个单词 var today_task = wx.getStorageSync('task') var length = today_task.length if (length > 0) { var n = today_task[0]; this.setData({ showNot: false }) this.setData({ counter: n }) this.search(this.data.today_word[n].word) } else { this.complete() } } },
2022-06-16 - 错误:TypeError: wordlist.push is not a function?
代码: var word = { "word": add, "ease": 0.5, "day": 0 }; var wordlist = wx.getStorageSync("word_list"); wordlist.push(word);
2022-06-16