Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个 jQuery 插件中遇到了以下代码。我已经简化了它以带走课程等。但是 [key]word 'settings' 不断出现:-
$(settings['#id1'], this).bind('click', function(){...}); $(settings['box']).fadeOut("fast"); and $(this).find(settings['#id1']);
settings这里有关键字吗?我在文档中找不到
settings
popbox.js第 4 行
popbox.js
var settings = $.extend({ selector : this.selector, open : '.open', box : '.box', arrow : '.arrow', arrow_border : '.arrow-border', close : '.close' }, options);
真的不难找到。