報錯
document(/setattribute).GetElementById is not a function
產生原因:
js是嚴格區分大小寫的
解決方法
嚴格按照方法名稱書寫:GetElementById 修改爲getElementById
setattribute修改爲setAttribute
document(/setattribute).GetElementById is not a function
js是嚴格區分大小寫的
嚴格按照方法名稱書寫:GetElementById 修改爲getElementById
setattribute修改爲setAttribute
promise reject 其實是一種狀態 作爲then 的第二個參數進行傳遞 或者在 catch中使用 當then第二個參數存在時,優先使用第二個參數而不是用catch 相當於有選擇性地進行回調
1、jQuery.type type: function( obj ) { return obj == null ? String( obj ) : class2ty