<!DOCTYPE HTML><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>confirm</title> <script type="text/javascript"> function reca() { var aaa = confirm("Welcome!"); if (aaa == true) { alert("hello!my friend"); } else { docoment.write("hi!") } </script> </head> <body> <input type="button" name="button" value="點(diǎn)擊這里" onclick="reca()" /> </body></html>求前輩指導(dǎo)指導(dǎo)
菜鳥弱弱的問一個,為什么我這段代碼運(yùn)行不了
我要沖錢
2016-10-31 12:44:49