冒问一个愚蠢的问题,我会尝试一下.
在RequireJs加载依赖项时是否可以显示进度指示器?
例如:
require(['jquery'], function($) {
// Well, jQuery loaded in quite some time due to a low-speed connection
//
// Or maybe I wanted to show an overlay to prevent user of clicking on UI widgets until the load is complete
});
Run Code Online (Sandbox Code Playgroud)
我不想开始修改RequireJS源,如果有一些插件没有出现在我的谷歌搜索中.
感谢你的帮助.
requirejs ×1