var name = document.getElementById("name").value;
var url = window.location.origin + '/storage/excel-data/' + name
jspreadsheet(document.getElementById('spreadsheet'), {
worksheets: [{
csv: url,
search: true,
csvHeaders: true,
tableOverflow:true,
tableHeight:'450px',
columns: [
{ width:300 },
{ width:80 },
{ width:100 },
],
footers:[
[
'Total Positif',
'=COUNTIF(H:H,"positive")',
],
[
'Total Negatif',
'=COUNTIF(H:H,"negative")',
]
],
}]
});
1条答案
按热度按时间yyyllmsg1#
您需要使用扩展JSpreadsheet Formula Pro来运行此语法。