Create a nested UL menu based on the URL path structure of menu items

前端 未结 6 620

I have an array of menu items, each containing Name and URL like this:

var menuItems = [  
    {  
        name : \"Store\",  
        url : \"/store\"  
          


        
6条回答
  •  难免孤独
    2021-01-05 09:01

    It's not in jQuery, but maybe this could help. I developed this after seeking the web to do exactly what you want.

    http://www.chapleau.info/article/ArrayofUrlsToASitemap.html

提交回复
热议问题