<script src="/js/jquery-1.11.1.min.js"></script>
$(document).ready(function(){
$("button").click(function(){
<div id="div1" style="height:100px;width:300px;border:1px solid black;background-color:yellow;">
This is some text in the div.
<p>This is a paragraph in the div.</p>
<p>This is another paragraph in the div.</p>
<button>清空 div 元素</button>