代碼和別人的一模一樣,但是點擊按鈕就是出不來調用函數對話框
代碼如下:(我曾試了把contxt();刪掉或者刪掉15行里最后的/,都沒用)
?<script type="text/javascript">
? ? ? ?contxt() //定義函數
? ? ? {
? ? ? ? ?alert("哈哈,調用函數了!");
? ? ? }
? ? contxt();
? ?</script>
</head>
<body>
? ?<form>
? ??
? ? ? <input type="button" ?value="點擊我" onclick="contxt()" /> ?
? ?</form>
2016-03-20
沒有function
2016-03-20
不好意思,各位請忽略這個問題,我試了下不知怎么又好了,但是問題不能刪除了