self.setData 如何赋值?
请问这种情况,self.setData中应该怎样对type赋值? [代码]Page({[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]weather: {[代码][代码] [代码][代码]yesterday: {[代码][代码] [代码][代码]type: [代码][代码]'xxx'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]}[代码][代码]}[代码]试过如下方法,没有效果 [代码]var[代码] [代码]type = [代码][代码]"weather.yesterday.type"[代码][代码];[代码] [代码]self.setData({[代码][代码] [代码][代码][type]: [代码][代码]'xxxxx'[代码][代码])}[代码]