我這個為什么錯了
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)調(diào)用</title>
?? <script type="text/javascript">
????? function contxt() //定義函數(shù)
????? {
???????? alert("哈哈,調(diào)用函數(shù)了!");
????? }
?? </script>
</head>
<body>
?? <form>
????? <input type="button"? value="點擊我" onclick="contxt()" />?
?? </form>
</body>
</html>
2020-02-22
?function contxt() //定義函數(shù)
????? {
???????? alert("哈哈,調(diào)用函數(shù)了!");
????? }
?contxt();? ? ? ? ? ? ? ? ? ? ? ? ? ? ?不寫左邊這個名稱,等于沒調(diào)用,點擊彈不出“哈哈,調(diào)用函數(shù)了!”
2020-01-06
你這個只會跳出對話框,然后顯示板變空白
2019-11-06
沒錯啊,多提交幾遍