在角度修饰阵列中进行启动

  • 本文关键字:启动 阵列 foreach
  • 更新时间 :
  • 英文 :


我想用" trim()"。

更改这些元素的值"

" this.currentpaaas.requicion [0] .refcobjetogasto = this.currentpaaas.requision [0] .refcobjetogasto.trim();"

但是它们在数组中,我这样做的方式只会在数组中更改一个值。如何更改该数组中的所有值?

CurrentPaaaS包含数组要求[]

图像示例

来自问题中所述的内容,我认为您要做的是修剪CurrentPaaas中的每个元素的recfcinancingform?

如果是,这就是您需要的:this.currentpaaas.requision.foreach(x => x.refcfinancingform = x.refcfinancingform.trim())

最新更新