小编Vin*_*oth的帖子

如何使用c#条件在条件内使用c#

值来自xml,用户只声明要执行的条件.

string condition ="25<10";
Run Code Online (Sandbox Code Playgroud)

现在,我想在if条件下使用它:

if(condition)
{
    //my condition
}
Run Code Online (Sandbox Code Playgroud)

我收到了这个错误

Cannot implicitly convert type string to bool
Run Code Online (Sandbox Code Playgroud)

谁能告诉我怎么做?

c# asp.net

5
推荐指数
1
解决办法
1880
查看次数

如何使用excel4node在excel表中写入数组

我正在使用 package.json 创建一个 excel 文件Excel4node。通过使用此代码

// Require library
var excel = require('excel4node');

// Create a new instance of a Workbook class
var workbook = new excel.Workbook();

// Add Worksheets to the workbook
var worksheet = workbook.addWorksheet('Sheet 1');
var worksheet2 = workbook.addWorksheet('Sheet 2');

// Create a reusable style
var style = workbook.createStyle({
  font: {
    color: '#FF0800',
    size: 12
  },
  numberFormat: '$#,##0.00; ($#,##0.00); -'
});

// Set value of cell A1 to 100 as a number type styled with paramaters …
Run Code Online (Sandbox Code Playgroud)

excel node.js excel4node

5
推荐指数
1
解决办法
4458
查看次数

标签 统计

asp.net ×1

c# ×1

excel ×1

excel4node ×1

node.js ×1