if (typeof(your_var) == "undefined") || your_var == null) { alert("your_var is undefined"); }
javascript中如何测试某变量为未定义
最新推荐文章于 2019-12-04 15:33:34 发布
if (typeof(your_var) == "undefined") || your_var == null) { alert("your_var is undefined"); }