燃料
2017-02-14 20:05
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我们互动下</title>
<script type="text/javascript">
function a(){
document.write("lalalalala~~");
var b=confirm("come on");
if(b==true){
alert("biubiubiu~");
}
}
</script>
</head>
<body>
<form>
<input name="button" type="button" onclik="a()" value="To be the better man"/>
</form>
</body>
</html>
<input name="button" type="button" onclik="a()" value="To be the better man"/> 这一行里的onclick写错了,少写了c。
<input name="button" type="button" onclik="a()" value="To be the better man"/>
打错了~~~~
JavaScript进阶篇
468060 学习 · 21891 问题
相似问题