首页 > 代码库 > js undefined

js undefined

var bbb1 = typeof str== ‘undefined‘;  //true
var bbb2 = typeof str== undefined;  //false
var bbb3 = str== undefined;  //true
var bbb4 = str== ‘undefined‘;  //undefined

js undefined