怎么怎么改
<!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="contxt" />?
? ? ? <!-- 單擊按鈕后,調用函數,onclick為點擊事件。 ? ? ? -->
? ?</form>
</body>
</html>
一頭霧水 ?T.T 瞌睡死我了
2015-08-05
contxt后面的括號掉了? 感覺函數后面應該都是要加()的
2015-08-03
onclick="contxt()"