<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>返回值函数</title>
<script type="text/javascript">
var x=document.getElementById("box")
x.onclick=function(){
alert('box')
}
var y=document.getElementById("btn")
y.onclick=function(){
alert('btn')
}
</script>
</head>
<body>
<div id="box">
<input type="button" value="ddd" id="btn">
</div>
</body>
</html>
Caballarii
ruibin
ruibin
IT菜_鸟