JQuery - Widget Public Methods

前端 未结 6 1222
野性不改
野性不改 2020-12-24 11:59

If I create a JQuery widget (code example below), and then define a \"public\" method, is there any other way to call the method other than using the following form?

6条回答
  •  时光说笑
    2020-12-24 12:36

    Slightly off-topic, I know, but you may want to look at jquery Entwine.

    This provides a form of inheritance and polymorphism which allows some clever behaviour with simple code. It sounds like this would do what you are trying to do.

提交回复
热议问题