非常好的文章,讲javascript 的异步编程的. --------------------------------------------------------------------------------- 原文:http://sporto.github.io/blog/2012/12/09/callbacks-listeners-promises/ When it comes to dealing with asynchronous development in JavaScript…
// 异步加载js (function(){ var _asyn_js_data = ['index.js','index1.js','index2.js','index3.js'] for(var i=0;i<_asyn_js_data.length;i++){ var script=document.createElement("script"); script.setAttribute("src", _asyn_js_data[i]); var head…