Javascript function hooks

后端 未结 7 998
孤街浪徒
孤街浪徒 2020-12-24 15:17

EDIT: OK, I believe the following solutions are valid:

  1. Use the jQuery AOP plugin. It basically wraps the old function together with the hook into a function

7条回答
  •  悲&欢浪女
    2020-12-24 16:07

    Take a look at jQuery's AOP plugin. In general, google "javascript aspect oriented programming".

提交回复
热议问题