問題描述類型判斷問題出現的環境背景及自己嘗試過哪些方法類型判斷相關代碼a = trueb = new Boolean(true)
b instanceof Boolean // truea.constructor === b.constructor // truewhy?
a instanceof Boolean ? false你期待的結果是什么?實際看到的錯誤信息又是什么?是否能分析a = true和 new Boolean(true)區別, instanceof判斷原理
js instanceof判斷問題
繁花如伊
2018-08-03 20:06:11