JS:如何检查一个变量是不是未定义的
这个问题在这里已经有了答案:
var lastname = "Hi";
if(typeof lastname !== "undefined")
{
alert("Hi. Variable is defined.");
}
链接地址: http://www.djcxy.com/p/95001.html
上一篇: JS: How to check if a variable is NOT undefined
下一篇: How can I determine if a JavaScript variable is defined in a page?