jQuery 插件开发指南

2020-05-17 06:26:03易采站长站整理

        init: function (p_options) {
            tabpanelBind(p_options, this);
        },
        add: function (p_options) {
            addTab(p_options, this);
            tabpanelBind(p_options, this);
            // debugger
        }    }
    function add(p_options) {
        var _defaults = {
            id: “”
        }
    <br>    //内部实现略………<br>        return _index;
    }
<br>})(jQuery);<br><br>调用  $(“#team”).tabpanel(‘add’,””);

好了,上面介绍的这2种开发方式都是最常用的,小伙伴们先好好学习下吧,后续我们再介绍的更深入些