bb_with_amd:Backbone.js 以 AMD 格式加载 jQuery 和 Underscore

时间:2021-06-30 01:32:48
【文件属性】:
文件名称:bb_with_amd:Backbone.js 以 AMD 格式加载 jQuery 和 Underscore
文件大小:49KB
文件格式:ZIP
更新时间:2021-06-30 01:32:48
JavaScript 加载 AMD 格式的 Backbone 我在阅读Backbone.js的源代码时,发现了如下描述。 if ( typeof define === 'function' && define . amd ) { define ( [ 'underscore' , 'jquery' , 'exports' ] , function ( _ , $ , exports ) { // Export global even in AMD case in case this script is loaded with // others that may still expect a global Backbone. root . Backbone = factory ( root , exports , _ , $ ) ; } ) ; } 这个存储库只是为了看看
【文件预览】:
bb_with_amd-master
----index.html(180B)
----js()
--------lib()
--------app.js(366B)
----README.md(546B)

网友评论