Converting a Javascript array to a Java array

前端 未结 4 1193
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 17:38

I\'m trying to convert a Javascript array in Java to a Java array. I\'m using the javax.script package. I tested this example here, but the type \"NativeArray\" was not reco

4条回答
  •  迷失自我
    2021-01-20 18:12

    I would simply use json-lib and parse the array that way. for example see How to parse a JSON and turn its values into an Array?

提交回复
热议问题