Boolean轉換中, null、''、0、-0、undefined、NaN這6種為false,其余都為true,比如Boolean({}), Boolean([])
2021-04-15
最新回答 / _Jack_Han_
如果遇到函數也直接賦值給副本對象就可以,function定義的函數指針會指向其調用者,基本上不會產生this指針問題。(除非function定義的時候用到了bind方法)
2021-04-12
a instanceof b 要注意b的類型,否則會報
`Uncaught TypeError: Right-hand side of 'instanceof' is not an object`
`Uncaught TypeError: Right-hand side of 'instanceof' is not an object`
2021-03-31