mirror of
https://gitee.com/BDWare/cp.git
synced 2025-01-10 01:44:08 +00:00
add and change function
This commit is contained in:
parent
3321ab23c2
commit
f855f49ec7
@ -228,6 +228,7 @@ public class DesktopEngine extends JSEngine {
|
||||
|
||||
public Object invokeFunction(String functionName, Object... args) {
|
||||
Invocable cal = engine;
|
||||
|
||||
try {
|
||||
return cal.invokeFunction(functionName, args);
|
||||
} catch (ScriptException e) {
|
||||
@ -235,6 +236,7 @@ public class DesktopEngine extends JSEngine {
|
||||
} catch (NoSuchMethodException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user