变量未定义
时间:2021-07-21 17:40:09
收藏:0
阅读:0
变量未定义时,
其被赋为undefined
let aaa; console.log("undefined ...",undefined); console.log("aaa ...", aaa); if(aaa==undefined){ console.log("aaa == undefined" ); } if(aaa===undefined){ console.log("aaa === undefined") }
评论(0)