<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>window.open</title><script type="text/javascript">? function Wopen(){? ? ?var myad=prompt("學(xué)生成績(jī)"); if(myad==90){ document.write("優(yōu)秀"); } else if(myad==80){ document.write("良好"); } else{ document.write("其他"); }</script></head><body>? ? <input name="button" type="button" onClick="Wopen()" value="點(diǎn)擊我,打開(kāi)新窗口!" / ></body></html>
這段代碼的問(wèn)題在哪?為什么點(diǎn)擊無(wú)顯示啊
玉鴦子
2016-09-15 09:44:39