你好,我有朋友阵列this.venner
访问数组值 - AngularJs
我也有阵列称为this.convensations
和输出是一样this.venner
, 但这里的ID叫partner_id
(PARTNER_ID输出为54312,54345 ,54346)
现在我想比较,如果this.convensation partner_id
和this.venner id
如果是相同
是这样的:
if (this.convensation in this.venner) {
//do something
} else {
// do something
}
我编辑了我的问题,请参阅,如果你能帮助我。 –