1、For example, call dayjs. If the third-party library file has been checked for more than 1M, the following code is very difficult to use
var result = "";
using (var engine = new V8ScriptEngine())
{
var scirpt = await FileUtil.ReadFileAndContentByVirUrlAsync("~/AppNodeJs/Plugins/words/cnchar/cnchar.all.min.js");
engine.Execute($"{scirpt}");
result = engine.Script.cnchar.convert.simpleToTrad("content");
}
1、For example, call dayjs. If the third-party library file has been checked for more than 1M, the following code is very difficult to use
var result = ""; using (var engine = new V8ScriptEngine()) { var scirpt = await FileUtil.ReadFileAndContentByVirUrlAsync("~/AppNodeJs/Plugins/words/cnchar/cnchar.all.min.js"); engine.Execute($"{scirpt}"); result = engine.Script.cnchar.convert.simpleToTrad("content"); }