|
1 | 1 | window._config = { |
2 | 2 | isDebug: location.hash.slice(1) === 'is-debug' || |
3 | | - ['localhost', '127.0.0.1', 'dev.bootstrap-table.com'].indexOf(location.hostname) > -1, |
4 | | - cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap-table@1.26.0/dist/', |
| 3 | + ['localhost', '127.0.0.1', 'dev.bootstrap-table.com'].includes(location.hostname), |
| 4 | + cdnUrl: 'https://cdn.jsdelivr.net/npm/bootstrap-table@1.27.0/dist/', |
5 | 5 | localUrl: '../bootstrap-table/src/', |
6 | 6 | testUrl: '/src/' |
7 | 7 | } |
@@ -169,9 +169,9 @@ function _beautifySource (data) { |
169 | 169 | } |
170 | 170 | } |
171 | 171 |
|
172 | | - result = result.concat($.map(obj.links, _getLink)) |
| 172 | + result = result.concat(obj.links.map(_getLink)) |
173 | 173 | addEmptyLine() |
174 | | - result = result.concat($.map(obj.scripts, function (script) { |
| 174 | + result = result.concat(obj.scripts.map(function (script) { |
175 | 175 | return _getScript(script, true) |
176 | 176 | })) |
177 | 177 | addEmptyLine() |
@@ -282,7 +282,7 @@ window.init = function (options_) { |
282 | 282 | if ($('.bd-lead').length) { |
283 | 283 | $('.bd-lead').html(window.marked(options.desc)).find('a').attr('target', '_blank') |
284 | 284 | } |
285 | | - $.each(options.links, function (i, file) { |
| 285 | + options.links.forEach(function (file) { |
286 | 286 | _link(file) |
287 | 287 | }) |
288 | 288 | _scripts(options.scripts, options.callback) |
|
0 commit comments