Unbind - Remove - Kill a jQuery plugin

前端 未结 3 1739
野性不改
野性不改 2020-12-10 02:37

Is there a way to \"unbind\" a jQuery plugin from a jquery selector?

3条回答
  •  不思量自难忘°
    2020-12-10 03:00

    You can unbind the plugin name from the jQuery prototype object with delete:

    delete $.fn.pluginName;
    

    This doesn't affect already initialized plugin instances though.

提交回复
热议问题