how to execute jquery functions in a order?

后端 未结 3 1255
梦如初夏
梦如初夏 2021-01-26 16:52

As the title says, how can I maintain/control the order of execution of functions in Jquery? I know we can establish many event handler via addEventListener, but th

3条回答
  •  没有蜡笔的小新
    2021-01-26 17:09

    Why use multiple event handlers if you need code to execute in a particular order?

    It will generally lead to much more maintainable and obvious code if you use one event handler that executes your multiple function calls in your desired order.

提交回复
热议问题