示例#1
0
文件: Native.cs 项目: Diullei/Shion
 public static void SetUp(JsContext context)
 {
     context.Set("___native", new Native(context));
     context.Run("function eval(code){ return ___native.Eval(code); }");
     context.Run("function Function(code){ return ___native.Function(code); }");
     context.Run("function isNaN(val){ return ___native.IsNaN(val); }");
 }
示例#2
0
文件: Native.cs 项目: Diullei/Shion
 public Native(JsContext context)
 {
     _context = context;
 }