promise
reject 其實是一種狀態 作爲then 的第二個參數進行傳遞
或者在 catch中使用
當then第二個參數存在時,優先使用第二個參數而不是用catch
相當於有選擇性地進行回調
promise
reject 其實是一種狀態 作爲then 的第二個參數進行傳遞
或者在 catch中使用
當then第二個參數存在時,優先使用第二個參數而不是用catch
相當於有選擇性地進行回調
1、jQuery.type type: function( obj ) { return obj == null ? String( obj ) : class2ty