Result Size: 625 x 534
x
 
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script>
</head>
<body>
<h1>设置 HTML</h1>
<div id="01">
  <h2 >Hello World!</h2>
</div>
<div id="02">
  <h2 >Hello Sweden!</h2>
</div>
<script>
$(document).ready(function() {
  var content = $("#02").html();
  $("#01").html(content);
});
</script>
</body>
</html>