标签: javascript undefined
做
if(something === undefined) { //handle }
和
if(typeof(something) === "undefined") { //handle }
请?哪个更好用,为什么?是否涉及任何风险?