js中怎么是否为undefined

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33210743/article/details/79310144

js中怎么判断是否为undefined

1,直接上代码:if(typeof(value) == 'undefined'){
alert('变量类型为undefined')
}

猜你喜欢

转载自blog.csdn.net/qq_33210743/article/details/79310144