jquery学习之html和text的区别 html()显示html,包括标签 text()显示的是纯文本 result: 第一个alert输出 <h1id="h1">Thisisaheading</h1> <p>Thisisaparagraph.</p> <p>Thisisanot yanyiping 2014-05-19 18:44:31