将两个表导出到Excel

我有2个表格和一些variables,我想出口到Excel。 在网上find的脚本只允许导出一个表,它的工作原理。 用于导出到Excel的脚本但我想包括{{month}}{{location}}{{year}}和2表的entryTableexitTable到Excel文档。

这是我的HTML

  <button align="right" class="btn btn-info" ng-click="exportToExcel('#entryTable')"> <span class="fa fa-file-excel-o"></span> </button> <h4 align="left" id="month"><b>Month:</b> {{month}} </h4> <h4 align="right" id="location"> <b>Local:</b> {{location}} </h4> <h4 align="left" id="Year"><b>year:</b> 2015</h4> <div class="col-lg-6" > <table id="entryTable" class="table table-striped"> <tr><th colspan="4">Entry</th></tr> <tr> <th>Day</th> <th>read ant</th> <th>read act</th> <th>Total</th> </tr> <tr ng-repeat="result1 in Result1"> <td align="center">{{result1.Day}}</td> <td align="center">{{result1.inicial}}</td> <td align="center">{{result1.final}}</td> <td align="center">{{result1.total}}</td> </tr> </table> </div> <div class="col-lg-6"> <table id="exitTable" class="table table-striped"> <tr><th colspan="4">Exit</th></tr> <tr> <th>Day</th> <th>read ant</th> <th>read act</th> <th>Total</th> </tr> <tr ng-repeat="result2 in Result2"> <td align="center">{{result2.Day}}</td> <td align="center">{{result2.inicial}}</td> <td align="center">{{result2.final}}</td> <td align="center">{{result2.total}}</td> </tr> </table> </div> 

你有其他build议如何做到这一点?