0 评论
1k 浏览

热文可以使用typeof操作符来判断一个变量是否为undefined类型?

  可以使用 typeof 操作符来判断一个变量是否为 undefined 类型   let x; if (typeof x === "undefined") { console.log("x is undefi...

!