jquery html dom方式创建新html元素 var txt1="<p>添加段落1</p>";var txt2=$("<p></p>").text("添加段落2");var txt3=document.createElement("p");txt3.innerHtml="添加段落3";