0 评论
437 浏览

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

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

!