jQuery获取所有html

var html = $('#id')[0].outerHTML;

  

原文地址:https://www.cnblogs.com/chenzhaojx/p/4043130.html