按照說(shuō)明填寫完代碼以后 點(diǎn)擊按鈕沒(méi)有出現(xiàn)提示框
<!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="點(diǎn)擊我" onclick="contxt()" /> ?
? ?</form>
</body>
</html>
2015-03-13
我試過(guò)是可以的呀 , 你再試試 ,