0
$("#export-excel").live('click', function(e) {
window.open('data:application/vnd.ms-excel,' + $('#table-div').html());
e.preventDefault();
});
此代码保持抓住html标签,当我出口,所以在Excel中DOC它出来为<table><tbody>
.....导出HTML表到Excel工作不
还有这个库http://excelbuilderjs.com/。你可能会发现它很有帮助。 –