📅  最后修改于: 2022-03-11 15:02:59.882000             🧑  作者: Mango
Context context = Context.newBuilder("js").build();
Value result = context.eval("js", "var list=[1,2,'foo',true]; list;");
if (result.hasArrayElements()) {
for (int i=0;i