- 博客(3)
- 收藏
- 关注
原创 Thymeleaf js获取session中的值
使用SpringBoot项目推荐的模板引擎Thymeleafjavascript中获取域对象的值使用双中括号包裹 [[ ]]console.log([[${session.user.id}]]);
2019-12-04 19:37:03 8562 5
原创 JQuery操作form表单
使用JQuery前,先引入JQuery库<script src="js/jquery-3.3.1.min.js"></script>提交表单方式一:JQuery事件,submit()方法form表单,action属性必需,后台控制页面跳转<form id="form" action="user/login" method="post"> <i...
2019-12-03 15:14:11 5046
原创 Thymeleaf常用属性
Thymeleaf使用前,HTML标签添加声明:http://www.thymeleaf.org<!DOCTYPE html><html xmlns:th="http://www.thymeleaf.org"><head>th:text<font th:text="${session.user.name}">Tom</font>...
2019-12-02 19:29:12 206
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人