Search

5/20/2008

typeof

列出一些比較容易搞混的typeof


alert(typeof /^a/); // function or regExp, depend of implementations
alert(typeof NaN); //number
alert(typeof undefined) // undefined
alert(typeof null) // object
alert(typeof false) // boolean

沒有留言: