Common expressions of html templates <!-- 模板部分 --> <!-- 模板结束 --> $("#templte").html();Copy after loginRemarks: The difference between the html() method and text(), html takes the html content (including tags) in the selector, while text( )Get only the text of the document in the selector (not including tags) <!-- 模板部分 --> <!-- 模板结束 --> Copy after login <!-- 模板部分 --> <!-- 模板结束 --> Copy after loginNew code method in 2013,html5tag format# Copy after loginCDATAThis thing is unique to XML. The content in it will not be parsed by the XML parser. You can understand it as Metadata Preventing events from bubbling and default behavior in jQuery Prevent bubbling: event.stopPropagation(); // 阻止事件冒泡Copy after loginPrevent default behavior: event.preventDefault(); //阻止默认行为 ( 表单提交 )Copy after loginAlso prevent event bubbling Bubbles and default behavior: return false;Copy after login