微信小程序 - Error: Expect END descriptor with depth 1 but get another

在上一篇博客中,我在项目中使用了对页面data的监听函数,在wx:if结构中引用到了被监听的这个字段,从而引发了Error: Expect END descriptor with depth 1 but get another这个bug。 论坛中官方解释是这样的: 检查了一下我的代码,发现在监听函数中(app.js中定义的observe方法): set(value) { conso
相关文章
相关标签/搜索