search

Home  >  Q&A  >  body text

authority management

Teacher, I cannot loop through the array in the children loop. The error is that the array is undefined. I have typed it several times according to the teacher’s code. Please give me an answer. Thank you teacher1.png2.png3.png

P粉944793232P粉944793232827 days ago906

reply all(3)I'll reply

  • 欧阳克

    欧阳克2022-09-21 17:03:00

    There is a menu here, there may be a problem. Menu Datasheet to have a look. Is it that id and fid do not correspond? If not, add me on qq

    reply
    0
  • P粉944793232

    Teacher, how many QQ do you have?

    P粉944793232 · 2022-09-21 17:05:16
    P粉944793232

    When printing the menu data in the background, there is a children array, which is rendered to the front end. When looping the parent ID, the data is rendered. When the second layer is looped, it is displayed that there is no array, the children array.

    P粉944793232 · 2022-09-21 17:19:49
  • Cancelreply