為什么沒有過?哪里錯了 還有點“點擊我”沒有反應
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數調用</title>
?? <script type="text/javascript">
?????? function contxt() //定義函數
????? {
???????? alert("哈哈,調用函數了!");
????? }
?? </script>
</head>
<body>
?? <form>
????? <input type="button"? value="點擊我" onclick="??? " />?
?? </form>
</body>
</html>
2019-09-07
沒有調用函數contxt()
2019-08-30
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數調用</title>
? ?<script type="text/javascript">
? ? ? function contxt() //定義函數
? ? ? {
? ? ? ? ?alert("哈哈,調用函數了!");
? ? ? }
? ? ?contxt();
? ?</script>
</head>
<body>
? ?<form>
? ? ? <input type="button"? value="點擊我" onclick="contxt()? ?" />??
? ?</form>
</body>
</html>
2019-08-29
沒有調用函數
2019-07-19
onclick后面的調用指令沒有寫,<input type="button"? value="點擊我" onclick="contxt()" />
2019-07-19
<input type="button"? value="點擊我" onclick="contxt()" />調用函數