Thymeleaf 获取后端Model中的数据
Thymeleaf获取
<span th:text="${name}"></span>
JavaScript获取
var msg = [[${msg}]];
如下文解决了问题
Thymeleaf读取对象、List、Map、数组中的变量值
https://blog.csdn.net/m0_52613676/article/details/112383781
做产品的程序,才是好的程序员!
<span th:text="${name}"></span>
JavaScript获取
var msg = [[${msg}]];
如下文解决了问题
https://blog.csdn.net/m0_52613676/article/details/112383781