请问向二维数组赋值后,view为什么取不到值?
[代码]page {[代码][代码]data: {[代码][代码] [代码][代码]i_1: [[代码][代码] [代码][代码][{ name: [代码][代码]'是1'[代码][代码], value: [代码][代码]'1'[代码][代码]},{ name: [代码][代码]'否'[代码][代码], value: [代码][代码]'0'[代码] [代码]}],[代码][代码] [代码][代码][{ name: [代码][代码]'是2'[代码][代码], value: [代码][代码]'1'[代码] [代码]},{ name: [代码][代码]'否'[代码][代码], value: [代码][代码]'0'[代码] [代码]}][代码][代码] [代码][代码]],[代码][代码] [代码][代码]questions: [[代码][代码]"1.AAA"[代码][代码],[代码][代码] [代码][代码]"2.BBB"[代码][代码]],[代码][代码]}[代码] [代码] [代码][代码]radioChange: [代码][代码]function[代码] [代码](e) {[代码] [代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]console.log([代码][代码]'radio发生change事件,携带value值为:'[代码][代码], e.detail.value);[代码][代码] [代码][代码]console.log([代码][代码]'11223'[代码][代码],e.currentTarget.dataset.index)[代码][代码] [代码][代码]var[代码] [代码]index = e.currentTarget.dataset.index;[代码][代码] [代码][代码]var[代码] [代码]radioItems = that.data.i_1[index];[代码] [代码] [代码][代码]for[代码] [代码]([代码][代码]var[代码] [代码]i = 0, len = radioItems.length; i < len; ++i) {[代码][代码] [代码][代码]radioItems[i].checked = radioItems[i].value == e.detail.value;[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]var[代码] [代码]objName = [代码][代码]"i_1["[代码][代码]+index+[代码][代码]"].text"[代码][代码];[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]objName: radioItems[代码][代码] [代码][代码]});[代码] [代码] [代码][代码]console.log([代码][代码]"fuzhi:::::::"[代码][代码],[代码][代码]this[代码][代码].data.i_1);[代码][代码] [代码][代码]},[代码][代码]}[代码] 从console里可以看到,对象已经被赋值成功,但是 view里取到是空 [代码]<[代码][代码]block[代码] [代码]wx:for[代码][代码]=[代码][代码]"{{questions}}"[代码] [代码]wx:key[代码][代码]=[代码][代码]"q"[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cells__title"[代码][代码]>{{item}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cells weui-cells_after-title"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]radio-group[代码] [代码]data-index[代码][代码]=[代码][代码]"{{index}}"[代码] [代码]bindchange[代码][代码]=[代码][代码]"radioChange"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]label[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell weui-check__label"[代码] [代码]wx:for[代码][代码]=[代码][代码]"{{i_1[index]}}"[代码] [代码]wx:for-item[代码][代码]=[代码][代码]"j"[代码] [代码]wx:key[代码][代码]=[代码][代码]"value"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]radio[代码] [代码]class[代码][代码]=[代码][代码]"weui-check"[代码] [代码]value[代码][代码]=[代码][代码]"{{j.value}}"[代码] [代码]checked[代码][代码]=[代码][代码]"{{j.checked}}"[代码][代码]/>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell__bd"[代码][代码]>{{j.name}}</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell__ft weui-cell__ft_in-radio"[代码] [代码]wx:if[代码][代码]=[代码][代码]"{{j.checked}}"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]icon[代码] [代码]class[代码][代码]=[代码][代码]"weui-icon-radio"[代码] [代码]type[代码][代码]=[代码][代码]"success_no_circle"[代码] [代码]size[代码][代码]=[代码][代码]"16"[代码][代码]></[代码][代码]icon[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]label[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]radio-group[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]block[代码][代码]>[代码] 应该怎么写,才能让view取到 checked 属性?