在评估的NewScript()中包括注释在执行时编写的脚本中包含注释的最简单方法是什么?
dt = CurrentDataTable();
mystring = "Hello world!";
mylist = {"A", "B", "C"};
Eval(EvalExpr(dt << NewScript( "test",
// This comment will not appear in the new script as it is inside the Eval(EvalExpr())
mystring = Expr(mystring);
mylist = Expr(mylist);
)));
// JSL output
// mystring = "Hello world!";
// mylist = {"A", "B", "C"};脚本编写回复:在评估的NewScript()中包含注释这是我会做的
dt = CurrentDataTable();
mystring = "Hello world!";
mylist = {"A", "B", "C"};
Eval(EvalExpr(dt << NewScript( "test",
c = "// This comment will not appear in the new script as it is inside the"; Eval(EvalExpr())
mystring = Expr(mystring);
mylist = Expr(mylist);
)));
c = "// JSL output";
c="// mystring = \!"Hello world!\!";";
c = "// mylist = {\!"A\!", \!"B\!", \!"C\!"};";