JQuery - Widget Public Methods

前端 未结 6 1265
野性不改
野性不改 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条回答
  •  旧时难觅i
    2020-12-24 12:50

    How about this one:

    $("#list").list.publicMethod
    

    As you are extending ui.list with your key:value pair set

提交回复
热议问题