Does jQuery always iterate through DOMs in order in which they are found in the code?

前端 未结 3 670
囚心锁ツ
囚心锁ツ 2021-02-19 12:58

Say, for example, I have a sortable list:

  • Item 1
  • Item 2
  • Item 3
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 13:55

    There is no where in the docs that promise this behavior, but this the way it's currently implemented.

    That said, I can't see a reason why would they change this behavior.

提交回复
热议问题