Excel export Exceltable.js

      Exceltable.js

    Link: https: //pan.baidu.com/s/1DMT-QnzXKvYzrZxdxO7POw
    extraction code: 85kg
    copy the contents of this open Baidu network disk phone App, the operation more convenient oh

 

   // exclude: CSS class class is not exported table row.
  // name: the name of the exported Excel document.
  // filename: name of the Excel file.
  // exclude_img: whether to export picture.
  // exclude_links: whether to export hyperlinks
  // exclud

 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title></title>
 6         <script src="js/jquery-3.3.1.min.js"></script>
 7         <script  src="js/table2excel.js.js"></script>
 8     </head>
 9     <body>
10          <input type="button" value=""=class"Export The Button " the onclick = " the Export () " />
 . 11           <Table ID = ' ExcelTable ' > <TD> contents SUMMARY </ TD> </ Table>
 12 is      </ body>
 13 is      <Script Language = " JavaScript " >
 14   
15       
16              function the export () { 
 . 17                $ ( " #exceltable " ) .table2excel ({             // ExcelTable stored as table data
 18 is                  // the CSS class class table rows are not exported 
. 19                  the exclude: ".noExl",
 20                  // name of the exported Excel document 
21                  name: " Table - " + new new a Date () getTime (),.
 22                  // name of the Excel file 
23                   filename: " Form - " + new new a Date () getTime (). + " * .xls " ,
 24                   on Bootstrap: to false 
25                 });  
 26 is                   
27                   }
 28           
29       
30      </ Script>
 31 is </ HTML>

 

e_inputs: whether to export the contents of the input box.

Guess you like

Origin www.cnblogs.com/YZM97/p/12356283.html