[JavaScript] typeof !== “undefined” vs. != null
https://stackoverflow.com/questions/2703102/typeof-undefined-vs-null
535
| typeof allows the identifier to never have been declared before. So it's safer in that regard:
|
留言
張貼留言