search

Home  >  Q&A  >  body text

javascript - Questions about for loop

I defined an array items. The values ​​in the array were dynamically added by calling the interface through a for loop. I added an index and the childrenItems array. At the same time, I called the interface of the list in the for loop, which is childrenItems. content, so I need to nest a for loop to push the content of childrenItems, but I don’t know why my printing result is like this. Please explain it, thank you

Printed content

Written content

天蓬老师天蓬老师2762 days ago592

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-06-14 10:56:18

    The ajax in the for loop is asynchronous

    reply
    0
  • Cancelreply