【发布时间】:2013-10-23 19:14:07
【问题描述】:
下面的代码应该很简单
//Generic success routine, let the developer know, store the results
function genericSuccess( _data , textStatus , jqXHR )
{
data[this.url] = _data;
}
jQuery.when( $.ajax({ url: metaKey, success: genericSuccess }) ,
$.ajax({ url: docsKey, success: genericSuccess }) ).then( console.log( "Then!" ) );
但是console.log('Then') 一直先触发。为什么 ?这不适用于 1.7.2 和 1.8.3
【问题讨论】: