1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        J2V8V8 的 Java 封裝版本

        聯(lián)合創(chuàng)作 · 2023-09-23 03:37

        J2V8 是 V8 引擎的 Java 封裝版本,注重性能和緊密集成。

        示例代碼:

        V8 v8 = V8.createV8Runtime();
        V8Array result = v8.executeArrayScript("var buffer = new ArrayBuffer(256);\n"
         + "var i32 = new Int32Array(buffer);\n"
         + "i32[0] = 1;\n"
         + "i32[1] = 3;\n"
         + "i32[2] = i32[0] + i32[1];\n"
         + "i32;");
        int[] ints = result.getInts(0, 3);
        System.out.println("Result: " + ints[0] + ", " + ints[1] + ", " + ints[2]);
        result.release();
        v8.release();

        Maven:

        <dependency>
          <groupId>com.eclipsesource.j2v8</groupId>
          <artifactId>j2v8_win32_x86_64</artifactId>
          <version>2.2.1</version>
          <scope>compile</scope>
        </dependency>
        瀏覽 24
        點贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            色哟哟丨小泬丨国产专区 | 亚洲三级在线免费观看 | 春宵福利导航 | 国产精品久久久久永久免费看 | 免费 无码 国产成年在线观看 | 久久成人免费91影片 | 丝袜天堂 | 午夜婷婷| www.888黄色 | 蜜芽av在线观看 精品成人一区二区 |