Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua 脚本里可以直接调用 java 函数吗 #31

Open
GeneBlue opened this issue Jun 3, 2020 · 2 comments
Open

lua 脚本里可以直接调用 java 函数吗 #31

GeneBlue opened this issue Jun 3, 2020 · 2 comments
Labels

Comments

@GeneBlue
Copy link

GeneBlue commented Jun 3, 2020

你好,作者,我想在 lua 脚本中直接调用 java 函数,有什么比较方便的方法吗

@ichenhe
Copy link
Owner

ichenhe commented Jun 4, 2020

可以,需要将 java 函数包装为一个类注入进去,请参见 README Lua 调用 Java 函数 章节。

@GeneBlue
Copy link
Author

GeneBlue commented Jun 5, 2020

这种 reg 需要事先在 java 代码中写好,不是很灵活

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants