我這樣子為什么不行呢
請(qǐng)問(wèn)各位大神,這代碼有什么問(wèn)題嗎?為什么沒(méi)反應(yīng)?
<script>
function show(){
var ipu=document.getElementById('ipt');
? ? tya=ipu.value;
switch(tya)
{
? ? case 1:
case 2:
case 3:
document.write("學(xué)習(xí)理念知識(shí)");
break;
case 4:
case 5:
document.write("誰(shuí)能懂0");
break;
case 6:
case 7:
document.write("似懂非懂歲女孩");
}
}
</script>
</head>
<body>
<input id="ipt" type="txet"/>
<input type="button" value="行程" onclick="show()"/>
2017-10-30
type="txet"...... text
2017-09-07
數(shù)字加引號(hào)