Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/440.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用alasql的WrapText_Javascript_Angularjs_Alasql - Fatal编程技术网

Javascript 使用alasql的WrapText

Javascript 使用alasql的WrapText,javascript,angularjs,alasql,Javascript,Angularjs,Alasql,如何使用alasql使用wraptext提取电子表格,我认为这是可行的: var mystyle = { headers: true, columns: [{ columnid: 'Description', width: 50, wraptext: true }], rows: { 1: { style: { Font: {

如何使用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]);
}

你找到解决办法了吗?你找到解决办法了吗?