我创建对象时,textbox有一些值(使用ng-blur和textbox.value!==undefined),然后将这些对象放在一个数组中(在这里都很好用)。当我单击checkbox (checkbox model bind with textbox ng-required)时,我需要删除具有该textbox值的特定对象。我正在使用:将
有没有办法通过只知道一个对象的属性来获取实例数组中实例的索引? 我有这样的东西: class NodeGene: self.#connections is an array of ConnectionGene instances
self.connections = connections 如果我有正在寻找的实例的no