為啥 點(diǎn)擊“點(diǎn)擊我”之后不出現(xiàn)“哈哈,調(diào)用函數(shù)了”
<!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>
2016-01-26
是不是你自己把瀏覽器設(shè)置了:阻止些頁(yè)面創(chuàng)建更多對(duì)話框