(function($) {
$.fn.imgBar = function(options) {
var options = $.extend({}, $.fn.imgBar.defaults, options);
this.each(function() {
});
};
//默认值
$.fn.imgBar.defaults = {
controlsShow: true, //是否显示数字导航
vertical: false, //纵向还是横向滑动
width: 0//容器宽度,不设置自动获取图片宽度
}
})(jQuery);
jquery 插件格式
最新推荐文章于 2022-03-22 21:47:27 发布