Loading multiple javascript files bằng jquery

$.when( $.getScript( "/mypath/myscript1.js" ), $.getScript( "/mypath/myscript2.js" ), $.getScript( "/mypath/myscript3.js" ), $.Deferred(function( deferred ){ $( deferred.resolve ); }) ).done(function(){ //Khi load xong các file js });

Copyright © 2018. Powered by WordPress & Romangie Theme.