Example #1
0
        public long f5Fun(IntPtr es)
        {
            long   obj  = ltf.GetJsParameter(es, 0);
            IntPtr exec = ltf.GetGlobalExecState();
            long   v    = ltf.GetJsObjectAttribute(exec, obj, "a");
            long   xc   = ltf.GetJsObjectAttribute(exec, obj, "b");
            int    i1   = ltf.JsValue2Int(exec, v);
            int    i2   = ltf.JsValue2Int(exec, xc);
            string str  = string.Format("alert('a:{0},b:{1}')", i1, i2);

            ltf.RunJavaScript(str);
            return(ltf.JsUndefined());
        }