Expect END descriptor with depth 0 but g
报错信息: Expect END descriptor with depth 0 but get another Expect START descriptor with depth 2 but get another 对应的报错代码: [代码]toChangeTab:[代码][代码]function[代码][代码](e){[代码][代码] [代码][代码]var[代码] [代码]_this = [代码][代码]this[代码][代码]; [代码][代码] [代码][代码]var[代码] [代码]tabIndex = e.currentTarget.dataset.index;[代码][代码] [代码][代码]var[代码] [代码]tabs = _this.data.render.tabs;[代码][代码] [代码][代码]tabs.forEach([代码][代码] [代码][代码]function[代码] [代码](value,index){[代码][代码] [代码][代码]tabs[index].isSelected = tabIndex === index;[代码][代码] [代码][代码]}[代码][代码] [代码][代码]);[代码][代码] [代码][代码]if[代码] [代码](tabs[tabIndex].tab_type != [代码][代码]'service'[代码][代码]) {[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]'render.opacity'[代码][代码]: 1.0, [代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码][代码]{[代码][代码] [代码][代码]var[代码] [代码]opacityWelfareTab = _this.data.render.opacityWelfareTab[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]'render.opacity'[代码][代码]: opacityWelfareTab,[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]'render.tabs'[代码][代码]: tabs,[代码][代码] [代码][代码]'render.selectedTab'[代码][代码]: tabs[tabIndex],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]更改后的代码: [代码]toChangeTab:[代码][代码]function[代码][代码](e){[代码][代码] [代码][代码]var[代码] [代码]_this = [代码][代码]this[代码][代码]; [代码][代码] [代码][代码]var[代码] [代码]tabIndex = e.currentTarget.dataset.index;[代码][代码] [代码][代码]var[代码] [代码]tabs = _this.data.render.tabs;[代码][代码] [代码][代码]tabs.forEach([代码][代码] [代码][代码]function[代码] [代码](value,index){[代码][代码] [代码][代码]tabs[index].isSelected = tabIndex === index;[代码][代码] [代码][代码]}[代码][代码] [代码][代码]);[代码][代码] [代码][代码]if[代码] [代码](tabs[tabIndex].tab_type != [代码][代码]'service'[代码][代码]) {[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]'render.opacity'[代码][代码]: 1.0,[代码][代码] [代码][代码]'render.tabs'[代码][代码]: tabs,[代码][代码] [代码][代码]'render.selectedTab'[代码][代码]: tabs[tabIndex][代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码][代码]{[代码][代码] [代码][代码]var[代码] [代码]opacityWelfareTab = _this.data.render.opacityWelfareTab[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]'render.opacity'[代码][代码]: opacityWelfareTab,[代码][代码] [代码][代码]'render.tabs'[代码][代码]: tabs,[代码][代码] [代码][代码]'render.selectedTab'[代码][代码]: tabs[tabIndex][代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码] [代码] [代码][代码]},[代码]实在不知道为什么这样改就对了。。。。。。 求解。