MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    kotlin如何运行js代码

    开发交流
    2
    3
    231
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cloudwww last edited by cloudwww

      如题,如何在kotlin中运行javascript函数,而且能获取运行结果

      1 Reply Last reply Reply Quote 0
      • StageGuard
        StageGuard last edited by

        使用 Mozilla Rhino,参考:https://github.com/StageGuard/OsuMapSuggester/blob/main/src/main/kotlin/me/stageguard/obms/script/ScriptContext.kt

        C 1 Reply Last reply Reply Quote 0
        • C
          cloudwww @StageGuard last edited by

          @stageguard 谢谢!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact