<!!DOCTYPE html>
<html>
<head>
<title>训练</title>
<meta charset="utf-8" />
<script type="text/javascript">
function jarrem(x){
//var a=document.getElementById("bu");
var child=x.childNodes;
if(child!=null&&child.length>0){
a.removeChild(child[0]);
}
else{
alert("no child");
}
}
</script>
</head>
<body >
<div id="bu" style="border: 1px solid blue;padding: 15px ;align: center;padding: 100px;">
<input type="button" name="button" id="b1" value="1" />
<input type="button" name="button" id="b1" value="2" />
<input type="button" name="button" id="b1" value="3" />
<input type="button" name="button" id="b1" value="4" />
<input type="button" name="button" id="b1" value="5" />
<input type="button" name="button" id="b1" value="6" />
<input type="button" name="button" id="b1" value="7" />
<input type="button" name="button" id="b1" value="8" /><br>
<input type="button" onclick="jarrem(document.getElementById("bu"))"
value="del" style="width :100px; height :50px;"
align="center"/>
</div>
</body>
</html>
qq_青枣工作室_0
右下角_