JavaScript 脚本 js如何判断变量空值 管理员 发表于2011-07-06 浏览2976 评论0 if(typeof a === 'undefined' || a === null )alert('a值出错');