报错
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