table-to-excel
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "table-to-excel", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "table-to-excel", | ||
@@ -5,0 +5,0 @@ "main": "table-to-excel.js", |
@@ -9,3 +9,3 @@ | ||
###Use | ||
```bash | ||
var tableToExcel=new TableToExcel(); | ||
@@ -21,5 +21,5 @@ document.getElementById('button').onclick=function(){ | ||
}; | ||
``` | ||
[github](https://github.com/ecofe/tabletoexcel) |
@@ -55,3 +55,3 @@ /** | ||
var border = n % 2 != 0 ? "border-top:1px solid #fff;" : ""; | ||
trArr.push('<tr><td style="background:#ddd; color:#fff;" colspan="' + param[0].length + '">' + title[n][0] + '</td></tr>'); | ||
trArr.push('<tr><td style="background:'+title[n].bg+'; color:'+title[n].color+';" colspan="' + param[0].length + '">' + title[n].text + '</td></tr>'); | ||
} | ||
@@ -58,0 +58,0 @@ } |
7370
4