如何使用ractive js循环列表并比较值

How to loop through the list and compare values using ractive js

本文关键字:比较 列表 循环 何使用 ractive js      更新时间:2023-09-26

我有一个列表{{# {test: . }}},其中需要另一个列表CCD_ 2。这样,在迭代的同时,我可以进行类似的比较

{{#if test.marks== test[i].marks}}

给定引用在给定位置只能引用一个值–test不能既是数组又是该数组的成员。尝试将混叠块({{# {test: .} }})替换为其他名称(例如{{# {testA: this} }})。