摘要: //运行条件jquery 1.82以上,直接运行代码,看结果var log = function(msg){ window.console && console.log(msg) } function asyncThing1(){ var dfd = $.Deferred(); setTimeout(function(){ log('asyncThing1 seems to be done...'); dfd.resolve('1111'); },1000); return dfd.promise(); } function asyncThing 阅读全文
posted @ 2013-05-16 12:02 kuailewangzi1212 阅读(6257) 评论(1) 推荐(0) 编辑