<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>系好安全帶,準(zhǔn)備啟航</title><!--引入外部文件的方式--><script type="text/javascript">//多行注釋? 我是多行注釋!? 我需要隱藏,? 否則會(huì)報(bào)錯(cuò)哦!//在頁(yè)面中顯示文字document.write("系好安全帶,準(zhǔn)備起航 目標(biāo)JS");//頁(yè)面中彈出提示框function hh(){? ? var ii=confirm("點(diǎn)擊我");? ? if (ii==true)? ? {? ? ? ? document.write("準(zhǔn)備好了,起航吧!");? ? }? ? else {document.write("繼續(xù)努力");? ? }} ? ?//單行注釋? ?我是單行注釋,我也要隱藏起來(lái)!</script></head><body><input type="button" value="點(diǎn)擊我" onclick="hh()"></body></html>
這段代碼找不到哪里錯(cuò)了啊
格小調(diào)MR3168311
2016-06-16 21:14:34