1个回答
2015-02-08
展开全部
<!DOCTYPE HTML>
<html>
<head>
<meta charset=UTF-8>
<title>YuGiOh</title>
<style type="text/css">
</style>
<script type="text/javascript">
onload = function ()
{
var focusIt = document.querySelector ("#focusIt");
var circles = focusIt.querySelectorAll("circle");
for ( var i = 0; i < circles.length; i++)
{
focusIt.removeChild (circles[i]);
}
}
</script>
</head>
<body>
<g id="focusIt">
<circle>1</circle>
<circle>2</circle>
<circle>3</circle>
<circle>4</circle>
<circle>5</circle>
<circle>6</circle>
</g>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询