var temail=cw.email;
var t1='undefined';
alert(t1);
alert(temail);
alert(temail==t1); 这里是false 但是都是undefined 这是为什么呢
if(temail !='undefined')
{
document.getElementById("dv1").style.display="none";
document.getElementById("dv3").style.display="none";
document.getElementById("dv2").style.display="block";
document.getElementById("realname").value = tusername;
}

6***@qq.com
- 发布:2018-03-01 16:39
- 更新:2018-03-01 21:58
- 阅读:1276
2 个回复
太烏
用typeof
王者地带 - 5+混合APP开发教程网 | http://www.html5-app.com | 咨询QQ: 2564034335