為啥用click出不來
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">
function click(){
var mychar=confirm("關(guān)注JS高級(jí)篇");
if(mychar==true){
document.write("你很棒!");
}else{
mychar.close();
}
}
? ?
</script>
</head>
<body>
<input type="button" value="JS進(jìn)階篇" onclick="click()"/>
</body>
</html>
2020-05-29
函數(shù)名不可使用關(guān)鍵字,保留字
2020-05-08
更換函數(shù)名 關(guān)鍵字
2020-03-01
換一下函數(shù)名稱就行
2020-02-28
input里的click換一個(gè)
2020-01-15
函數(shù)名換一下,不用click