Open zealzhangz opened 7 years ago
When I use version 1.0.2 if my HTML table cells was merged.The exported Excel file is also merged.When I upgraded to version 1.1.1 It not work.Here's part of my code.
<table class="table table-bordered table-hover" id="table4"> <thead> <tr> <th>A</th> <th>B</th> <th>C</th> <th>D</th> <th>E</th> <th>F</th> <th>G</th> </tr> </thead> <tbody> <tr> <td>H</td> <td>I</td> <td>J</td> <td>1</td> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td>H</td> <td>I</td> <td>J</td> <td>1</td> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td>H</td> <td>I</td> <td>J</td> <td>1</td> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td colspan="3">Toal</td> <td>3</td> <td>3</td> <td>3</td> <td>3</td> </tr> </tbody> </table> <br/> <button class="btn btn-primary" id="button6">Export</button>
$('#button6').click(function () { $("#table4").table2excel({ exclude: ".noExl", name: "Worksheet Name", filename: "table4.xls" }); });
When I use version 1.0.2 if my HTML table cells was merged.The exported Excel file is also merged.When I upgraded to version 1.1.1 It not work.Here's part of my code.