(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 关注
- 465 浏览
添加回答
举报
0/150
提交
取消