发布于 2年前

js判断undefined

var tmp = undefined; 
if (typeof(tmp) == "undefined"){ 
    alert("undefined"); 
}
©2020 edoou.com   京ICP备16001874号-3