Jquery multidimensional arrays

前端 未结 3 483
清歌不尽
清歌不尽 2021-01-03 13:45

I\'m making an application where the user fills out all the information for a logo and adds it to a list where he can then add more logos or delete them. Imagine I add a log

3条回答
  •  萌比男神i
    2021-01-03 13:52

    I think you want do this :

    var tempLogo = new Array();
    tempLogo[0] = logos[0]; // or the logo you have choose
    
    // Clear the logo
    logos.clear();
    
    // Set the logos with the tempLogo value
    logos = tempLogo;
    

提交回复
热议问题