Boolean轉(zhuǎn)換中, null、''、0、-0、undefined、NaN這6種為false,其余都為true,比如Boolean({}), Boolean([])
2021-04-15
最新回答 / _Jack_Han_
如果遇到函數(shù)也直接賦值給副本對(duì)象就可以,function定義的函數(shù)指針會(huì)指向其調(diào)用者,基本上不會(huì)產(chǎn)生this指針問題。(除非function定義的時(shí)候用到了bind方法)
2021-04-12
a instanceof b 要注意b的類型,否則會(huì)報(bào)
`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