jQuery multiple document ready queue order

前端 未结 4 1047
忘掉有多难
忘掉有多难 2021-01-05 03:33

I know calls to $(function(){ }) in jQuery are executed in the order that they are defined, but I\'m wondering if you can control the order of the queue?

For example

4条回答
  •  青春惊慌失措
    2021-01-05 03:46

    Those functions are added to a private array readyList, so I'd say it isn't accessible for manipulation.

    http://github.com/jquery/jquery/blob/master/src/core.js#L47

提交回复
热议问题