①页面顶部需要先引入thymeleaf依赖
②添加标签
③在js中使用其他标签
④现在filePrefix就是一个变量了,controller传过来的是什么,那它就是什么.
springBoot,thymeleaf页面中js使用标签
原文:https://www.cnblogs.com/lswzt/p/10521792.html