<script type="text/javascript"> var age=prompt("請輸入你的年齡!") if age(<18) {document.write("你是未成年!");} else if(age>18) {document.write("你是成年人!");} else if(age>24) {document.write("你可以結婚了哦");} else{document.write("你老了噢!");}</script>
消息對話框! 我這代碼有什么問題嗎? 為何不其作用呢?老師們幫忙看看!
meiba
2016-06-16 01:15:53