為什么點(diǎn)兩次確定對(duì)話框才消失
為什么點(diǎn)兩次確定對(duì)話框才消失
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>alert</title>
? <script type="text/javascript">
? function rec(){
? ? var mychar="I love JavaScript";
? ? alert(mychar);
? }
? </script>
</head>
<body>
? ? <input name="button" type="button" onClick="rec()" value="點(diǎn)擊我,彈出對(duì)話框" />
</body>
</html>
2017-09-02
我這邊顯示1次彈出對(duì)話框啊,你看看是不是編輯器的緩存問(wèn)題!