<script type="text/JavaScript">
function a(){
var c=document.getElementById("b").value;
switch(c){
case 1:
document.write("恭喜");
break;
case 2:
document.write("请相亲");
break;
default:
}
}
</script>
</head>
<body>
<div>请问您结婚了吗?</div>
<input type="text" id="b">
<input type="button" value="进入" onclick="a()" >
柠檬酸钠
qq_阳光斜影_03450181
相关分类