如何使用alasql使用wraptext提取电子表格,这是我认为可行的:
var mystyle = {
headers: true,
columns: [{
columnid: 'Description',
width: 50,
wraptext: true
}],
rows: {
1: {
style: {
Font: {
Color: "#FF0077"
}
}
}
},
cells: {
1: {
1: {
style: {
Font: {
Color: "#00FFFF"
}
}
}
}
}
};
$scope.exportMyData = function() {
alasql('SELECT * INTO XLSXML("john.xls",?) FROM ?', [mystyle, $scope.gridOptions.data]);
}