<!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>
html問題,我修改很多次但也沒有找出錯誤所在。
慕粉1043575294
2017-06-13 10:25:06