[[]]是thymeleaf的内联表达式,在script上加 th:inline="none" 即可 报错信息 转载于:https://www.cnblogs.com/SeaWxx/p/10287505.html