【发布时间】:2019-04-23 16:17:24
【问题描述】:
我的应用程序中有一个 policy_id 和多个 policy_no 在 array 中的数组列表。我需要从我拥有的数组中显示 policy_no 的数据。
我附上了我需要将policy_id与数组中的plicy_no匹配的图像,并仅显示该数组结果。
this.policy_id = this.navParams.get('y'); // here is policy id
console.log(this.policy_id);
this.policies = this.navParams.get('z'); // here the policies array
console.log(this.policies);
【问题讨论】:
-
我在图片一中添加数据图像,有 policy_no 我只想要该 policy_id 的数据,如第二张图片所示
-
循环遍历两个数组。
标签: angular ionic-framework ionic3