Check if variable is defined javascript
This question already has an answer here:
使用typeof
if(typeof variable === "undefined"){
/* It is undefined */
}
链接地址: http://www.djcxy.com/p/95012.html
上一篇: 我如何检查变量的存在
下一篇: 检查变量是否定义了javascript