promise
reject 其实是一种状态 作为then 的第二个参数进行传递
或者在 catch中使用
当then第二个参数存在时,优先使用第二个参数而不是用catch
相当于有选择性地进行回调
promise
reject 其实是一种状态 作为then 的第二个参数进行传递
或者在 catch中使用
当then第二个参数存在时,优先使用第二个参数而不是用catch
相当于有选择性地进行回调
1、jQuery.type type: function( obj ) { return obj == null ? String( obj ) : class2ty