为什么这样写得取反才能实现啊 哪位大佬告诉我
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
var message;
function male(){
message = "你是男的还是女的";
confirm(message);
if(message!=true){
document.write("你是男的");
}else{
document.write("你是女的");
}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="male()" value="点击我,弹出确认对话框" />
</body>
</html>