日期:2014-05-16 浏览次数:20459 次
(function (all) { var callee = arguments.callee; all.shift()(function(data) { callee.call(null, all, data); }); })([ function(next) { setTimeout(function() { document.body.innerHTML += '<li>first'; next(); }, 1000) }, function(next) { setTimeout(function() { document.body.innerHTML += '<li>second'; next(); }, 2000) }, function(next) { setTimeout(function() { document.body.innerHTML += '<li>third'; }, 3000) } ]);