值不绑定到AngularJs中的Array第一个索引

时间:2017-11-21 06:08:09

标签: arrays angularjs binding mapping

值绑定不起作用,在这种情况下我要将一个值映射到数组第一个索引,该索引位于循环key1.MappingOption中,我想将其映射到key1.MappingOptionsColumns[0]

的数组
   if (key1.IsMultiSelect) {
    key1.MappingOptionsColumns = [];
    key1.MappingOptionsColumns[0] = key1.MappingOptions;
    if (key1.FieldTypeEnum == 17) {
        key1.MappingOptionsColumns[0] = key1.MappingOptions.toString();
        console.log("key1.MappingOptionsColumns", key1.MappingOptionsColumns[0]);
        console.log("key1", key1);
    }
}

之后即将到来 console value

0 个答案:

没有答案