問(wèn)一下,我是哪里錯(cuò)了啊?
<!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>
運(yùn)行了之后沒(méi)問(wèn)題,但是它不讓我通過(guò),是不是哪里寫得不標(biāo)準(zhǔn)?
2020-04-02
onclick
=
"contxt?()" 中間多個(gè)空格
2020-05-14
?
<
input
?type
=
"button"
??value
=
"點(diǎn)擊我"
?onclick
=
"contxt?()"
/>
后面的/去掉