How can I reorder/sort a NodeList in JavaScript?

前端 未结 3 2118
Happy的楠姐
Happy的楠姐 2021-02-14 00:27

I have what I think should be a straightforward question; let me quickly explain:

In my JavaScript, food.xml is read in with:

getMenuXml.ope         


        
3条回答
  •  走了就别回头了
    2021-02-14 01:05

    It's a good idea to use a Javascript library to get ready-made functions w.r.t Node List operations such as re-ordering, sorting, foreach etc. I would recommend YUI-3, please refer YUI-3 NodeList .

提交回复
热议问题