按照說明填寫完代碼以后 點擊按鈕沒有出現提示框
<!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()" /> ?
? ?</form>
</body>
</html>
2015-03-13
我試過是可以的呀 , 你再試試 ,