
如图所示,有太多的js需要导入了, 所以我想搞个通用的。
比如在jsp中:可以定义一个
<script xxxx</script>
<script xxxx</script>
<script xxxx</script>
<script xxxx</script>
<script xxxx</script>
<script xxxx</script>
<link xxxx css样式/>
<link xxxx css样式/>
<link xxxx css样式/>
全是这种的一个 jsp,然后在index.jsp中 include 即可。
那么,这种情况在thymeleaf中该如何处理呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
学习是最好的投资!