用 typeof判断
if(typeof value === 'undefined'){
...
}else {
...
}
用 typeof判断
if(typeof value === 'undefined'){
...
}else {
...
}
相关文章: