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 teacher
replyWhen 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.
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