📅  最后修改于: 2022-03-11 15:02:45.388000             🧑  作者: 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