Javascript 如何使用jquery将html页面转换为excel格式

Javascript 如何使用jquery将html页面转换为excel格式,javascript,jquery,html,excel,Javascript,Jquery,Html,Excel,我在一个html页面中有许多表,其中文本字段被添加到表行中,字段的值从数据库中检索。如何将页面转换为Excel格式 <table border="1" cellpadding=4 id="1.1.4" name="1.1.4"> <tr style="background-color:#FAA519;border-top-color: white; border-style: hidden;"> <td colspan="3" style=

我在一个html页面中有许多表,其中文本字段被添加到表行中,字段的值从数据库中检索。如何将页面转换为Excel格式

 <table border="1" cellpadding=4 id="1.1.4" name="1.1.4">
      <tr style="background-color:#FAA519;border-top-color: white; border-style: hidden;">
      <td colspan="3" style="border-right-style: hidden; font-weight:bold;">1.1.4</td>
      </tr>


      <tr rowspan=3>
      <th rowspan=3>Dpt</th>
      <th rowspan=3>Data</th>
      </tr>

      <th colspan=2 style="text-align:center;">Latest</th>
      <tr>
      <th>No</th>
      <th>Rs</th>
      </tr>

      <tr>
       <th rowspan="2" style="width: 26px;">T,<BR> I,<br>P </th>
      <td>Regu</td>
      <td class="tdright"><input type="text" id="1.1.4_1_1" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      <td><input type="text" id="1.1.4_1_2" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      </tr>

      <tr>
      <td>Major</td>
      <td class="tdright"><input type="text" id="1.1.4_2_1" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      <td><input type="text" id="1.1.4_2_2" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      </tr>

      <tr>
      <th>Leg</th>
      <td>Major</td>
      <td class="tdright"><input type="text" id="1.1.4_3_1" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      <td><input type="text" id="1.1.4_3_2" name="Bank" title="qry" onkeypress="return onlyNos(event,this);"/></td>
      </tr>

     </table>

1.1.4
Dpt
资料
最新的
不
Rs
T、 
I,
P 雷古 专业 腿 专业
您能分享您尝试过的内容吗?我尝试使用jquery将其导出到excel,因为它包含文本框,我无法将数据从文本字段获取到excel。如何将HTML表格中的文本字段值获取到Excel?