何时在Swift中使用枚举数组?

时间:2016-04-08 13:06:57

标签: arrays swift mutable

我注意到当你尝试在循环中删除或改变数组项时会发生奇怪的事情。但是,在数组上调用@Component({ (...) template: ` <input [ngFormControl]='ctrl'/> <child-component [select-values]="ctrl.valueChanges"></child-component> ` }) export class SomeComponent { constructor() { this.ctrl = new Control(); this.ctrl.valueChanges.subscribe(...); } } 时执行此操作时,它按预期工作。它背后的概念是什么?我们何时应该使用enumerate()

0 个答案:

没有答案
相关问题