A template for a jQuery plugin with options and accessible methods?

前端 未结 4 985
名媛妹妹
名媛妹妹 2021-02-10 05:57

I am want to build a plugin with accessible methods and options, this for a complex plugin. I need the methods to be accessible outside the plugin because if somebody ads someth

4条回答
  •  悲&欢浪女
    2021-02-10 06:41

    Here is the latest boilerplate https://github.com/techlab/jquery-plugin-boilerplate

    Also you can use the create-jquery-plugin npm CLI utility. just run

    npx create-jquery-plugin
    

提交回复
热议问题