chr*_*ude 0 javascript if-statement
可能重复: 在JavaScript中检测未定义的对象属性
会这样吗?
if(variable == undefined) {
还是会这样?
if(variable == "undefined") {
Atu*_*vid 5
if(typeof(variable) == 'undefined')
小智 5
if (typeof variable == 'undefined')
归档时间:
15 年,11 月 前
查看次数:
357 次
最近记录: