美文网首页
HTML5 前端将 dom 元素转化为 EXCEL ,并实现下载

HTML5 前端将 dom 元素转化为 EXCEL ,并实现下载

作者: 若水亦城空 | 来源:发表于2019-11-15 17:33 被阅读0次

    该插件依赖于jQuery和exceljs.min.js ,js/table2excel.core.js,需要在页面中引入这些文件。
    <script src="js/exceljs.min.js"></script>
    <script src="js/table2excel.core.js"></script>

    可在项目中找 js-xlsx

    <html><head>
      <meta charset="utf-8">
      <title>表格导出</title>
      <style type="text/css">
        button{
          padding: 10px 5px;
          font-size: 16px;
        }
        table{
          width: 600px;
          min-height: 60px;
          overflow: hidden;
          border-right: 1px solid #000;
          border-bottom: 1px solid #000;
        }
        table td{
          width: 100px;
          height: 30px;
          line-height: 30px;
          text-align: center;
          border-left: 1px solid #000;
          border-top: 1px solid #000;
        }
      </style>
    </head>
    <body>
      <button onclick="exportTables()">数据导出</button>
    <table id="yesterday-date-content" border=0 cellpadding=0 cellspacing=0 width=1090 style='border-collapse: 
     collapse;table-layout:fixed;width:817pt'>
     <col class=x62 width=80 style='mso-width-source:userset;width:60pt'>
     <col class=x62 width=101 span=10 style='mso-width-source:userset;width:75.75pt'>
     <tr height=32 class=x64 style='mso-height-source:userset;height:24pt' id='r0'>
    <td colspan=11 height=32 class=x83 width=1090 style='height:24pt;'>3-9<span style='mso-spacerun:yes'>&nbsp; </span>地区生产总值和指数</td>
     </tr>
     <tr height=20 class=x75 style='mso-height-source:userset;height:15pt' id='r1'>
    <td height=20 class=x63 style='height:15pt;'></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
     </tr>
     <tr height=20 style='mso-height-source:userset;height:15pt' id='r2'>
    <td colspan=4 height=20 class=x63 style='mso-ignore:colspan;height:15pt;'>本表绝对数按当年价格计算,指数按不变价格计算。</td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
    <td class=x63></td>
     </tr>
     <tr height=20 style='mso-height-source:userset;height:15pt' id='r3'>
    <td height=18 class=x65 style='height:13.5pt;'></td>
    <td colspan=10 class=x88></td>
     </tr>
     <tr height=37 style='mso-height-source:userset;height:27.95pt' id='r4'>
    <td rowspan=2 height=72 class=x86 style='border-right:1px solid #000000;border-bottom:1px solid windowtext;height:54.4pt;'><font class="font19">地</font><font class="font22"><span style='mso-spacerun:yes;white-space:nowrap;'>&nbsp; </span></font><font class="font19">区</font></td>
    <td colspan=5 class=x84><font class="font19">地区生产总值</font><font class="font22"> (</font><font class="font19">亿元</font><font class="font22">)</font></td>
    <td colspan=5 class=x84><font class="font19">指</font><font class="font22"><span style='mso-spacerun:yes;white-space:nowrap;'>&nbsp;&nbsp;&nbsp; </span></font><font class="font19">数</font><font class="font22"> (</font><font class="font19">上年</font><font class="font22">=100)</font></td>
     </tr>
     <tr height=37 style='mso-height-source:userset;height:27.95pt' id='r5'>
    <td class=x76>2010</td>
    <td class=x76>2011</td>
    <td class=x76>2012</td>
    <td class=x76>2013</td>
    <td class=x76>2014</td>
    <td class=x76>2010</td>
    <td class=x76>2011</td>
    <td class=x76>2012</td>
    <td class=x76>2013</td>
    <td class=x66>2014</td>
     </tr>
     <tr height=6 style='mso-height-source:userset;height:5.1pt' id='r6'>
    <td height=5 class=x77 style='height:4.35pt;'></td>
    <td class=x67></td>
    <td class=x68></td>
    <td class=x68></td>
    <td class=x68></td>
    <td class=x68></td>
    <td class=x69></td>
    <td class=x69></td>
    <td class=x69></td>
    <td class=x68></td>
    <td class=x68></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r7'>
    <td height=32 class=x78 style='height:24pt;'> 北<span style='mso-spacerun:yes'>&nbsp; </span>京</td>
    <td class=x70 align=right x:num="14113.58">14113.58</td>
    <td class=x71 align=right x:num="16251.93">16251.93</td>
    <td class=x71 align=right x:num="17879.400000000001">17879.40</td>
    <td class=x71 align=right x:num="19800.810000000001">19800.81</td>
    <td class=x71 align=right x:num="21330.83">21330.83</td>
    <td class=x72 align=right x:num="110.3">110.3</td>
    <td class=x72 align=right x:num="108.09999999999999">108.1</td>
    <td class=x72 align=right x:num="107.73194390395065">107.7</td>
    <td class=x72 align=right x:num="107.70">107.7</td>
    <td class=x72 align=right x:num="107.30">107.3</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r8'>
    <td height=32 class=x78 style='height:24pt;'> 天<span style='mso-spacerun:yes'>&nbsp; </span>津</td>
    <td class=x70 align=right x:num="9224.4599999999991">9224.46</td>
    <td class=x71 align=right x:num="11307.28">11307.28</td>
    <td class=x71 align=right x:num="12893.88">12893.88</td>
    <td class=x71 align=right x:num="14442.009999999998">14442.01</td>
    <td class=x71 align=right x:num="15726.93">15726.93</td>
    <td class=x72 align=right x:num="117.40000000000001">117.4</td>
    <td class=x72 align=right x:num="116.40000000000001">116.4</td>
    <td class=x72 align=right x:num="113.84996261774481">113.8</td>
    <td class=x72 align=right x:num="112.5">112.5</td>
    <td class=x72 align=right x:num="110.03601314959555">110.0</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r9'>
    <td height=32 class=x78 style='height:24pt;'> 河<span style='mso-spacerun:yes'>&nbsp; </span>北</td>
    <td class=x70 align=right x:num="20394.259999999998">20394.26</td>
    <td class=x71 align=right x:num="24515.76">24515.76</td>
    <td class=x71 align=right x:num="26575.01">26575.01</td>
    <td class=x71 align=right x:num="28442.95">28442.95</td>
    <td class=x71 align=right x:num="29421.15">29421.15</td>
    <td class=x72 align=right x:num="112.2">112.2</td>
    <td class=x72 align=right x:num="111.3">111.3</td>
    <td class=x72 align=right x:num="109.62757131366998">109.6</td>
    <td class=x72 align=right x:num="108.20">108.2</td>
    <td class=x72 align=right x:num="106.5">106.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r10'>
    <td height=32 class=x78 style='height:24pt;'> 山<span style='mso-spacerun:yes'>&nbsp; </span>西</td>
    <td class=x70 align=right x:num="9200.86">9200.86</td>
    <td class=x71 align=right x:num="11237.55">11237.55</td>
    <td class=x71 align=right x:num="12112.83">12112.83</td>
    <td class=x71 align=right x:num="12665.25">12665.25</td>
    <td class=x71 align=right x:num="12761.49">12761.49</td>
    <td class=x72 align=right x:num="113.90000000000001">113.9</td>
    <td class=x72 align=right x:num="113">113.0</td>
    <td class=x72 align=right x:num="110.14314161207469">110.1</td>
    <td class=x72 align=right x:num="108.90">108.9</td>
    <td class=x72 align=right x:num="104.90">104.9</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r11'>
    <td height=32 class=x78 style='height:24pt;'> 内蒙古</td>
    <td class=x70 align=right x:num="11672">11672.00</td>
    <td class=x71 align=right x:num="14359.879999999999">14359.88</td>
    <td class=x71 align=right x:num="15880.578843843574">15880.58</td>
    <td class=x71 align=right x:num="16916.502942303145">16916.50</td>
    <td class=x71 align=right x:num="17770.18881900089">17770.19</td>
    <td class=x72 align=right x:num="115">115.0</td>
    <td class=x72 align=right x:num="114.3">114.3</td>
    <td class=x72 align=right x:num="111.46252065653965">111.5</td>
    <td class=x72 align=right x:num="109">109.0</td>
    <td class=x72 align=right x:num="107.79949581469599">107.8</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r12'>
    <td height=32 class=x78 style='height:24pt;'></td>
    <td class=x70></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r13'>
    <td height=32 class=x78 style='height:24pt;'> 辽<span style='mso-spacerun:yes'>&nbsp; </span>宁</td>
    <td class=x70 align=right x:num="18457.27">18457.27</td>
    <td class=x71 align=right x:num="22226.70">22226.70</td>
    <td class=x71 align=right x:num="24846.43">24846.43</td>
    <td class=x71 align=right x:num="27213.22">27213.22</td>
    <td class=x71 align=right x:num="28626.58">28626.58</td>
    <td class=x72 align=right x:num="114.2">114.2</td>
    <td class=x72 align=right x:num="112.2">112.2</td>
    <td class=x72 align=right x:num="109.54613657035048">109.5</td>
    <td class=x72 align=right x:num="108.70">108.7</td>
    <td class=x72 align=right x:num="105.80">105.8</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r14'>
    <td height=32 class=x78 style='height:24pt;'> 吉<span style='mso-spacerun:yes'>&nbsp; </span>林</td>
    <td class=x70 align=right x:num="8667.58">8667.58</td>
    <td class=x71 align=right x:num="10568.83">10568.83</td>
    <td class=x71 align=right x:num="11939.24">11939.24</td>
    <td class=x71 align=right x:num="13046.40">13046.40</td>
    <td class=x71 align=right x:num="13803.14">13803.14</td>
    <td class=x72 align=right x:num="113.8">113.8</td>
    <td class=x72 align=right x:num="113.8">113.8</td>
    <td class=x72 align=right x:num="111.97322015661429">112.0</td>
    <td class=x72 align=right x:num="108.30">108.3</td>
    <td class=x72 align=right x:num="106.5">106.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r15'>
    <td height=32 class=x78 style='height:24pt;'> 黑龙江</td>
    <td class=x70 align=right x:num="10368.60">10368.60</td>
    <td class=x71 align=right x:num="12582">12582.00</td>
    <td class=x71 align=right x:num="13691.58">13691.58</td>
    <td class=x71 align=right x:num="14454.905625384301">14454.91</td>
    <td class=x71 align=right x:num="15039.376411886155">15039.38</td>
    <td class=x72 align=right x:num="112.7">112.7</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="110.02516598383537">110.0</td>
    <td class=x72 align=right x:num="108">108.0</td>
    <td class=x72 align=right x:num="105.60927270090879">105.6</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r16'>
    <td height=32 class=x78 style='height:24pt;'></td>
    <td class=x70></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r17'>
    <td height=32 class=x78 style='height:24pt;'> 上<span style='mso-spacerun:yes'>&nbsp; </span>海</td>
    <td class=x70 align=right x:num="17165.98">17165.98</td>
    <td class=x71 align=right x:num="19195.689999999999">19195.69</td>
    <td class=x71 align=right x:num="20181.72">20181.72</td>
    <td class=x71 align=right x:num="21818.149999999998">21818.15</td>
    <td class=x71 align=right x:num="23567.695347643948">23567.70</td>
    <td class=x72 align=right x:num="110.3">110.3</td>
    <td class=x72 align=right x:num="108.2">108.2</td>
    <td class=x72 align=right x:num="107.45521859915999">107.5</td>
    <td class=x72 align=right x:num="107.70">107.7</td>
    <td class=x72 align=right x:num="107">107.0</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r18'>
    <td height=32 class=x78 style='height:24pt;'> 江<span style='mso-spacerun:yes'>&nbsp; </span>苏</td>
    <td class=x70 align=right x:num="41425.480000000003">41425.48</td>
    <td class=x71 align=right x:num="49110.269999999997">49110.27</td>
    <td class=x71 align=right x:num="54058.22">54058.22</td>
    <td class=x71 align=right x:num="59753.37">59753.37</td>
    <td class=x71 align=right x:num="65088.32">65088.32</td>
    <td class=x72 align=right x:num="112.7">112.7</td>
    <td class=x72 align=right x:num="111">111.0</td>
    <td class=x72 align=right x:num="110.13059646703221">110.1</td>
    <td class=x72 align=right x:num="109.60">109.6</td>
    <td class=x72 align=right x:num="108.70000189169251">108.7</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r19'>
    <td height=32 class=x78 style='height:24pt;'> 浙<span style='mso-spacerun:yes'>&nbsp; </span>江</td>
    <td class=x70 align=right x:num="27722.310000000001">27722.31</td>
    <td class=x71 align=right x:num="32318.85">32318.85</td>
    <td class=x71 align=right x:num="34665.33">34665.33</td>
    <td class=x71 align=right x:num="37756.58">37756.58</td>
    <td class=x71 align=right x:num="40173.03">40173.03</td>
    <td class=x72 align=right x:num="111.90000000000001">111.9</td>
    <td class=x72 align=right x:num="109">109.0</td>
    <td class=x72 align=right x:num="107.98247874429679">108.0</td>
    <td class=x72 align=right x:num="108.20">108.2</td>
    <td class=x72 align=right x:num="107.62443532397023">107.6</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r20'>
    <td height=32 class=x78 style='height:24pt;'> 安<span style='mso-spacerun:yes'>&nbsp; </span>徽</td>
    <td class=x70 align=right x:num="12359.33">12359.33</td>
    <td class=x71 align=right x:num="15300.65">15300.65</td>
    <td class=x71 align=right x:num="17212.05061521375">17212.05</td>
    <td class=x71 align=right x:num="19229.337100000001">19229.34</td>
    <td class=x71 align=right x:num="20848.747601399245">20848.75</td>
    <td class=x72 align=right x:num="114.59999999999999">114.6</td>
    <td class=x72 align=right x:num="113.5">113.5</td>
    <td class=x72 align=right x:num="112.10293636760018">112.1</td>
    <td class=x72 align=right x:num="110.40">110.4</td>
    <td class=x72 align=right x:num="109.20017358467074">109.2</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r21'>
    <td height=32 class=x78 style='height:24pt;'> 福<span style='mso-spacerun:yes'>&nbsp; </span>建</td>
    <td class=x70 align=right x:num="14737.120000000001">14737.12</td>
    <td class=x71 align=right x:num="17560.18">17560.18</td>
    <td class=x71 align=right x:num="19701.78">19701.78</td>
    <td class=x71 align=right x:num="21868.49">21868.49</td>
    <td class=x71 align=right x:num="24055.76">24055.76</td>
    <td class=x72 align=right x:num="113.90000000000001">113.9</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="111.44580934023769">111.4</td>
    <td class=x72 align=right x:num="111">111.0</td>
    <td class=x72 align=right x:num="109.90">109.9</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r22'>
    <td height=32 class=x78 style='height:24pt;'> 江<span style='mso-spacerun:yes'>&nbsp; </span>西</td>
    <td class=x70 align=right x:num="9451.26">9451.26</td>
    <td class=x71 align=right x:num="11702.82">11702.82</td>
    <td class=x71 align=right x:num="12948.88">12948.88</td>
    <td class=x71 align=right x:num="14410.19">14410.19</td>
    <td class=x71 align=right x:num="15714.63">15714.63</td>
    <td class=x72 align=right x:num="114">114.0</td>
    <td class=x72 align=right x:num="112.5">112.5</td>
    <td class=x72 align=right x:num="110.95099563059112">111.0</td>
    <td class=x72 align=right x:num="110.10">110.1</td>
    <td class=x72 align=right x:num="109.70">109.7</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r23'>
    <td height=32 class=x78 style='height:24pt;'> 山<span style='mso-spacerun:yes'>&nbsp; </span>东</td>
    <td class=x70 align=right x:num="39169.919999999998">39169.92</td>
    <td class=x71 align=right x:num="45361.849999999999">45361.85</td>
    <td class=x71 align=right x:num="50013.244857321202">50013.24</td>
    <td class=x71 align=right x:num="55230.3249">55230.32</td>
    <td class=x71 align=right x:num="59426.590197501871">59426.59</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="110.90000000000001">110.9</td>
    <td class=x72 align=right x:num="109.76063591737537">109.8</td>
    <td class=x72 align=right x:num="109.60">109.6</td>
    <td class=x72 align=right x:num="108.70000813746647">108.7</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r24'>
    <td height=32 class=x78 style='height:24pt;'></td>
    <td class=x70></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r25'>
    <td height=32 class=x78 style='height:24pt;'> 河<span style='mso-spacerun:yes'>&nbsp; </span>南</td>
    <td class=x70 align=right x:num="23092.36">23092.36</td>
    <td class=x71 align=right x:num="26931.029999999999">26931.03</td>
    <td class=x71 align=right x:num="29599.31">29599.31</td>
    <td class=x71 align=right x:num="32191.299918000001">32191.30</td>
    <td class=x71 align=right x:num="34938.24">34938.24</td>
    <td class=x72 align=right x:num="112.5">112.5</td>
    <td class=x72 align=right x:num="111.90000000000001">111.9</td>
    <td class=x72 align=right x:num="110.14601144010352">110.1</td>
    <td class=x72 align=right x:num="109">109.0</td>
    <td class=x72 align=right x:num="108.85936703722079">108.9</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r26'>
    <td height=32 class=x78 style='height:24pt;'> 湖<span style='mso-spacerun:yes'>&nbsp; </span>北</td>
    <td class=x70 align=right x:num="15967.61">15967.61</td>
    <td class=x71 align=right x:num="19632.259999999998">19632.26</td>
    <td class=x71 align=right x:num="22250.45">22250.45</td>
    <td class=x71 align=right x:num="24791.83">24791.83</td>
    <td class=x71 align=right x:num="27379.217597951712">27379.22</td>
    <td class=x72 align=right x:num="114.8">114.8</td>
    <td class=x72 align=right x:num="113.8">113.8</td>
    <td class=x72 align=right x:num="111.25001031611322">111.3</td>
    <td class=x72 align=right x:num="110.10">110.1</td>
    <td class=x72 align=right x:num="109.68">109.7</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r27'>
    <td height=32 class=x78 style='height:24pt;'> 湖<span style='mso-spacerun:yes'>&nbsp; </span>南</td>
    <td class=x70 align=right x:num="16037.96">16037.96</td>
    <td class=x71 align=right x:num="19669.560000000001">19669.56</td>
    <td class=x71 align=right x:num="22154.227451944298">22154.23</td>
    <td class=x71 align=right x:num="24621.67">24621.67</td>
    <td class=x71 align=right x:num="27037.321245906649">27037.32</td>
    <td class=x72 align=right x:num="114.59999999999999">114.6</td>
    <td class=x72 align=right x:num="112.8">112.8</td>
    <td class=x72 align=right x:num="111.25828957429498">111.3</td>
    <td class=x72 align=right x:num="110.10">110.1</td>
    <td class=x72 align=right x:num="109.47278718521964">109.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r28'>
    <td height=32 class=x78 style='height:24pt;'> 广<span style='mso-spacerun:yes'>&nbsp; </span>东</td>
    <td class=x70 align=right x:num="46013.06">46013.06</td>
    <td class=x71 align=right x:num="53210.28">53210.28</td>
    <td class=x71 align=right x:num="57067.917737518139">57067.92</td>
    <td class=x71 align=right x:num="62474.79">62474.79</td>
    <td class=x71 align=right x:num="67809.85">67809.85</td>
    <td class=x72 align=right x:num="112.40000000000001">112.4</td>
    <td class=x72 align=right x:num="110">110.0</td>
    <td class=x72 align=right x:num="108.15549170559808">108.2</td>
    <td class=x72 align=right x:num="108.5">108.5</td>
    <td class=x72 align=right x:num="107.76362175839785">107.8</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r29'>
    <td height=32 class=x78 style='height:24pt;'> 广<span style='mso-spacerun:yes'>&nbsp; </span>西</td>
    <td class=x70 align=right x:num="9569.8500000000004">9569.85</td>
    <td class=x71 align=right x:num="11720.870000000001">11720.87</td>
    <td class=x71 align=right x:num="13035.101544785181">13035.10</td>
    <td class=x71 align=right x:num="14449.903999999999">14449.90</td>
    <td class=x71 align=right x:num="15672.893305029136">15672.89</td>
    <td class=x72 align=right x:num="114.2">114.2</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="111.26407030939569">111.3</td>
    <td class=x72 align=right x:num="110.20">110.2</td>
    <td class=x72 align=right x:num="108.50269422644499">108.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r30'>
    <td height=32 class=x78 style='height:24pt;'> 海<span style='mso-spacerun:yes'>&nbsp; </span>南</td>
    <td class=x70 align=right x:num="2064.5">2064.50</td>
    <td class=x71 align=right x:num="2522.66">2522.66</td>
    <td class=x71 align=right x:num="2855.54">2855.54</td>
    <td class=x71 align=right x:num="3177.5600000000004">3177.56</td>
    <td class=x71 align=right x:num="3500.72">3500.72</td>
    <td class=x72 align=right x:num="116">116.0</td>
    <td class=x72 align=right x:num="112">112.0</td>
    <td class=x72 align=right x:num="109.13136940264616">109.1</td>
    <td class=x72 align=right x:num="109.90">109.9</td>
    <td class=x72 align=right x:num="108.5">108.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r31'>
    <td height=32 class=x78 style='height:24pt;'></td>
    <td class=x70></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r32'>
    <td height=32 class=x78 style='height:24pt;'> 重<span style='mso-spacerun:yes'>&nbsp; </span>庆</td>
    <td class=x70 align=right x:num="7925.58">7925.58</td>
    <td class=x71 align=right x:num="10011.370000000001">10011.37</td>
    <td class=x71 align=right x:num="11409.60">11409.60</td>
    <td class=x71 align=right x:num="12783.26">12783.26</td>
    <td class=x71 align=right x:num="14262.60">14262.60</td>
    <td class=x72 align=right x:num="117.09999999999999">117.1</td>
    <td class=x72 align=right x:num="116.40000000000001">116.4</td>
    <td class=x72 align=right x:num="113.5509686234324">113.6</td>
    <td class=x72 align=right x:num="112.30">112.3</td>
    <td class=x72 align=right x:num="110.90">110.9</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r33'>
    <td height=32 class=x78 style='height:24pt;'> 四<span style='mso-spacerun:yes'>&nbsp; </span>川</td>
    <td class=x70 align=right x:num="17185.48">17185.48</td>
    <td class=x71 align=right x:num="21026.68">21026.68</td>
    <td class=x71 align=right x:num="23872.80">23872.80</td>
    <td class=x71 align=right x:num="26392.07">26392.07</td>
    <td class=x71 align=right x:num="28536.66">28536.66</td>
    <td class=x72 align=right x:num="115.09999999999999">115.1</td>
    <td class=x72 align=right x:num="115">115.0</td>
    <td class=x72 align=right x:num="112.55099061332454">112.6</td>
    <td class=x72 align=right x:num="110">110.0</td>
    <td class=x72 align=right x:num="108.5">108.5</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r34'>
    <td height=32 class=x78 style='height:24pt;'> 贵<span style='mso-spacerun:yes'>&nbsp; </span>州</td>
    <td class=x70 align=right x:num="4602.16">4602.16</td>
    <td class=x71 align=right x:num="5701.84">5701.84</td>
    <td class=x71 align=right x:num="6852.20">6852.20</td>
    <td class=x71 align=right x:num="8086.86">8086.86</td>
    <td class=x71 align=right x:num="9266.39">9266.39</td>
    <td class=x72 align=right x:num="112.8">112.8</td>
    <td class=x72 align=right x:num="115">115.0</td>
    <td class=x72 align=right x:num="113.56513027946056">113.6</td>
    <td class=x72 align=right x:num="112.5">112.5</td>
    <td class=x72 align=right x:num="110.80">110.8</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r35'>
    <td height=32 class=x78 style='height:24pt;'> 云<span style='mso-spacerun:yes'>&nbsp; </span>南</td>
    <td class=x70 align=right x:num="7224.18">7224.18</td>
    <td class=x71 align=right x:num="8893.1200000000008">8893.12</td>
    <td class=x71 align=right x:num="10309.469999999999">10309.47</td>
    <td class=x71 align=right x:num="11832.31">11832.31</td>
    <td class=x71 align=right x:num="12814.59">12814.59</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="113.7">113.7</td>
    <td class=x72 align=right x:num="112.95975986649512">113.0</td>
    <td class=x72 align=right x:num="112.10">112.1</td>
    <td class=x72 align=right x:num="108.10">108.1</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r36'>
    <td height=32 class=x78 style='height:24pt;'> 西<span style='mso-spacerun:yes'>&nbsp; </span>藏</td>
    <td class=x70 align=right x:num="507.46">507.46</td>
    <td class=x71 align=right x:num="605.83000000000004">605.83</td>
    <td class=x71 align=right x:num="701.03">701.03</td>
    <td class=x71 align=right x:num="815.67000000000007">815.67</td>
    <td class=x71 align=right x:num="920.83256507101203">920.83</td>
    <td class=x72 align=right x:num="112.3">112.3</td>
    <td class=x72 align=right x:num="112.7">112.7</td>
    <td class=x72 align=right x:num="111.78096087587666">111.8</td>
    <td class=x72 align=right x:num="112.10">112.1</td>
    <td class=x72 align=right x:num="110.79941164373692">110.8</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r37'>
    <td height=32 class=x78 style='height:24pt;'></td>
    <td class=x70></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x71></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
    <td class=x72></td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r38'>
    <td height=32 class=x78 style='height:24pt;'> 陕<span style='mso-spacerun:yes'>&nbsp; </span>西</td>
    <td class=x70 align=right x:num="10123.48">10123.48</td>
    <td class=x71 align=right x:num="12512.30">12512.30</td>
    <td class=x71 align=right x:num="14453.68">14453.68</td>
    <td class=x71 align=right x:num="16205.449999999997">16205.45</td>
    <td class=x71 align=right x:num="17689.94">17689.94</td>
    <td class=x72 align=right x:num="114.59999999999999">114.6</td>
    <td class=x72 align=right x:num="113.90000000000001">113.9</td>
    <td class=x72 align=right x:num="112.85684683817682">112.9</td>
    <td class=x72 align=right x:num="111">111.0</td>
    <td class=x72 align=right x:num="109.70">109.7</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r39'>
    <td height=32 class=x78 style='height:24pt;'> 甘<span style='mso-spacerun:yes'>&nbsp; </span>肃</td>
    <td class=x70 align=right x:num="4120.75">4120.75</td>
    <td class=x71 align=right x:num="5020.37">5020.37</td>
    <td class=x71 align=right x:num="5650.2039591469766">5650.20</td>
    <td class=x71 align=right x:num="6330.6923145943056">6330.69</td>
    <td class=x71 align=right x:num="6836.8207879301553">6836.82</td>
    <td class=x72 align=right x:num="111.8">111.8</td>
    <td class=x72 align=right x:num="112.52">112.5</td>
    <td class=x72 align=right x:num="112.55629011107308">112.6</td>
    <td class=x72 align=right x:num="110.80">110.8</td>
    <td class=x72 align=right x:num="108.88545003412284">108.9</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r40'>
    <td height=32 class=x78 style='height:24pt;'> 青<span style='mso-spacerun:yes'>&nbsp; </span>海</td>
    <td class=x70 align=right x:num="1350.43">1350.43</td>
    <td class=x71 align=right x:num="1670.44">1670.44</td>
    <td class=x71 align=right x:num="1893.54">1893.54</td>
    <td class=x71 align=right x:num="2122.06">2122.06</td>
    <td class=x71 align=right x:num="2303.32">2303.32</td>
    <td class=x72 align=right x:num="115.3">115.3</td>
    <td class=x72 align=right x:num="113.5">113.5</td>
    <td class=x72 align=right x:num="112.25222402798715">112.3</td>
    <td class=x72 align=right x:num="110.80">110.8</td>
    <td class=x72 align=right x:num="109.20">109.2</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r41'>
    <td height=32 class=x78 style='height:24pt;'> 宁<span style='mso-spacerun:yes'>&nbsp; </span>夏</td>
    <td class=x70 align=right x:num="1689.65">1689.65</td>
    <td class=x71 align=right x:num="2102.21">2102.21</td>
    <td class=x71 align=right x:num="2341.29">2341.29</td>
    <td class=x71 align=right x:num="2577.5700000000002">2577.57</td>
    <td class=x71 align=right x:num="2752.10">2752.10</td>
    <td class=x72 align=right x:num="113.5">113.5</td>
    <td class=x72 align=right x:num="112.09999999999999">112.1</td>
    <td class=x72 align=right x:num="111.49856135997676">111.5</td>
    <td class=x72 align=right x:num="109.80">109.8</td>
    <td class=x72 align=right x:num="108.00010344961358">108.0</td>
     </tr>
     <tr height=32 style='mso-height-source:userset;height:24pt' id='r42'>
    <td height=32 class=x78 style='height:24pt;'> 新<span style='mso-spacerun:yes'>&nbsp; </span>疆</td>
    <td class=x70 align=right x:num="5437.47">5437.47</td>
    <td class=x71 align=right x:num="6610.05">6610.05</td>
    <td class=x71 align=right x:num="7505.31">7505.31</td>
    <td class=x71 align=right x:num="8443.84">8443.84</td>
    <td class=x71 align=right x:num="9273.46">9273.46</td>
    <td class=x72 align=right x:num="110.59999999999999">110.6</td>
    <td class=x72 align=right x:num="112">112.0</td>
    <td class=x72 align=right x:num="111.95949275600381">112.0</td>
    <td class=x72 align=right x:num="111">111.0</td>
    <td class=x72 align=right x:num="110">110.0</td>
     </tr>
    
    
    </table>
      <script src="js/exceljs.min.js"></script>
      <script src="js/table2excel.core.js"></script>
      <script>
        function exportTables () {
          new Table2Excel('#yesterday-date-content').export()
        }
      </script>
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:HTML5 前端将 dom 元素转化为 EXCEL ,并实现下载

          本文链接:https://www.haomeiwen.com/subject/owusictx.html