(function($) {$.fn.MyCss = function(options) {var defaults = {bd: '#000',cl: 'red'};var opts = $.extend(defaults, options);return this.each(function() {var _this = $(this);_this.css({'background': opts.bd, 'color': opts.cl});});};})(jQuery);怎么添加callback
2 回答

慕哥6287543
TA貢獻1831條經驗 獲得超10個贊
var defaults = {
bd: '#000',
cl: 'red',
callBack: function(){}
};
調用opts.callBack();
- 2 回答
- 0 關注
- 480 瀏覽
添加回答
舉報
0/150
提交
取消