问题:获取到的数据没有引号导致报错 解决方案:目前是直接加了双引号,可以正常获取值 原因 <script type="text/javascript"> 换成 <script th:inline="javascript">