java list 遍历给javascript数组将List<String>转成json,传到界面。js中使用var arr = eval(‘${list}')将list转成js数组。 代码如下:var keyList = eval('${key2023-02-21JavaScript190