发布于 4年前

js中判断是否null

let exp = null; 
if (!exp && typeof(exp)!=”undefined” && exp!=0) 
{ 
alert(“is null”); 
} 
©2020 edoou.com   京ICP备16001874号-3