采坑记录:js中取Controller中model设置的值 1、注意:script标签中加上:th:inline=“javascript” 通过: var data = [[${model设置的名字}]]; 获取 打印到控制台结果