会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
cjin-01
CnBlogs
Home
New Post
Contact
Admin
Subscription
随笔分类 -
thymeleaf
thymeleaf在不同session,request作用域的使用
摘要:参考: https://blog.csdn.net/weixin_59668801/article/details/124421911
阅读全文
posted @
2022-09-23 13:40
2337
阅读(27)
评论(0)
推荐(0)
1、使用thymeleaf给foreach遍历的元素加一个id 2、在th:href中使用${}
摘要:备注:在jsp之中,类似的是varStatus 需求: 有时候,我们需要操作foreach遍历后的元素,比如说,使用js给遍历的某个元素绑定点击事件;那么如何通过标签的id找到那个元素呢? 解决: 环境:springboot+jdk1.8+idea html代码: <!DOCTYPE html><h
阅读全文
posted @
2022-09-14 19:54
2337
阅读(813)
评论(0)
推荐(0)
公告