我有一个这样的数组:
Array{
10 - 2011 Headlight Assembly Nissan Versa
11 - LH 07-11 INS QTLY O.E.M - FREE SAME DAY SHIPPING
12 - 000
13 - A0
14 - 40626A1
15 - $165 actual
16 - More Desc Stuff
}
这是从一个简单的 dom 结果产生的。列表中有多个项目。我想做的是在达到 17 后将键重置回 10,这样我就可以遍历数组中的所有结果并找到正确的值,而无需查找键 10、14、15 - 然后是键20、24、25 等
不太确定我是否正确解释了它,或者如何完成它。任何指导表示赞赏。提前致谢!