是否有可能在加载完所有文件后触发全局完整回调?例如:
yepnope(['file1.js', 'file2.js'])....some html....
<script>
yepnope({complete: function() { console.log('This is getting called before the above files finish loading') });
</script>发布于 2013-04-03 22:56:08
你有没有尝试过下面这样的东西?
Modernizr.load([
{
load : ["file1.js", "file2.js"],
complete : function()
{
// do some stuff
}
} // can repeat this block as required
]);祝好运!
https://stackoverflow.com/questions/15767024
复制相似问题