Home  >  Q&A  >  body text

Conditions inside the for loop

Why is the condition in the for loop

i<item.length

This place is the loop condition, which is equivalent to how many small selection boxes there are. Why is the length .length? Shouldn't it be a number?

**秒创**秒创2128 days ago924

reply all(0)I'll reply

No reply
  • Cancelreply