1 <!DOCTYPE html>
 2 <html>
 3 <head lang="en">
 4     <meta charset="UTF-8">
 5     <title>鼠标单击Button1后将Button1移动到Button2的后面</title>
 6 </head>
 7 <body>
 8 <div>
 9     <input type="button" >
10     <input type="button" />
11 </div>
12 <script type="text/javascript">
13     function moveBtn(obj) {
14 
15         var clone = obj.cloneNode(true);
16         var parent = obj.parentNode;
17         parent.appendChild(clone);
18         parent.removeChild(obj);
19     }
20 </script>
21 </body>
22 
23 
24 </html>
View Code

点击前:

42.鼠标单击Button1后将Button1移动到Button2的后面

点击后:

42.鼠标单击Button1后将Button1移动到Button2的后面


<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>鼠标单击Button1后将Button1移动到Button2的后面</title>
</head>
<body>
<div>
<input type="button" ></html>

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-09-04
  • 2022-02-20
  • 2021-04-20
  • 2022-12-23
  • 2022-02-16
猜你喜欢
  • 2022-12-23
  • 2021-05-24
  • 2021-11-04
  • 2021-05-18
  • 2022-03-05
  • 2021-11-30
相关资源
相似解决方案