js取后台model值 <script th:inline="javascript"> var data = [[${data}]]; </script> 这两种都行 隐藏域方法对象集合不太方便 转载于:https://www.cnblogs.com/CESC4/p/7395914.html