為什么沒(méi)有出現(xiàn)對(duì)話框
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)調(diào)用</title>
? ?<script type="text/javascript">
? ? fuction contxt() //定義函數(shù)
? ? ? {
? ? ? ? ?alert("哈哈,調(diào)用函數(shù)了!");
? ? ? }
? ?</script>
</head>
<body>
? ?<form>
? ? ? <input type="button" ?value="點(diǎn)擊我" onclick=" contxt(); ? " /> ?
? ?</form>
</body>
</html>
2017-04-01
......你的函數(shù)關(guān)鍵詞function拼錯(cuò)了? 少了一個(gè)n? 其他的沒(méi)問(wèn)題 再運(yùn)行試試吧