;(function ( $, window, document, undefined )
写这样的函数的目的是什么?
creatorHashChanged: function(event) {}
"延伸"这意味着什么?
$.extend( {}, defaults, options );
完整的代码:
;(function ( $, window, document, undefined ) {
function Plugin( options ) {
this.options = $.extend( {}, defaults, options );
this._defaults = defaults;
this._name = pluginName;
this._tour = defaults.tour;
if(this.options.delete) this.tourdate_delete(true);
else this.init();
}
Plugin.prototype = {
init: function() {
},
creatorHashChanged: function(event) {
},
exitCreator: function() {
},
})( jQuery, window, document );
答案 0 :(得分:1)