当前位置:网站首页>How to get page data
How to get page data
2022-08-01 08:15:00 【Joy's sister is a rookie】
How to get the user information on the login page?
(Backend method)
What I need to do now is
After successful login on the login page
The user name I am currently logged in can be displayed on the next jump page
The method of the backend is to obtain the user information of the successful login in the login method of the controller layer and add it to the session
(Be careful to make a judgment of the empty space, otherwise it may make an error)
Add a special method to get the user stored in the session, get it through get, and return it
Front-end code:
This is the part that needs to display the user, use id=root
to specify the current location, and in ajax, you can use .html to return it
(id use#
Get the class using .
)
How to get the user name verified on the previous page when changing the password?
(Front-end method)
on next page, first use the function to get the parameters of the address bar and get the value of user
Then call this function to get the username
边栏推荐
- gethostbyname \ getaddrinfo 解析域名IP地址不安全的原因
- 网络个各种协议
- Image lossless compression software which works: try completely free JPG - C image batch finishing compression reduces weight tools | latest JPG batch dressing tools download
- leetcode-6135:图中的最长环
- leetcode-6134:找到离给定两个节点最近的节点
- Golang: go open web service
- Flink SQL - client, how to deal with the source side and to increase the target, the SQL - client including mapping table and the JOB such as
- 七夕来袭——属于程序员的浪漫
- pytest接口自动化测试框架 | 跳过模块
- Upgrade to heavyweight lock, lock reentrancy will lead to lock release?
猜你喜欢
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
Chapters 6 and 7 of Huawei Deep Learning Course
leetcode-6132: Make all elements in array equal to zero
特殊的日子,值得纪念
app 自动化 通过工具查看app 元素 (三)
How to use Photoshop to composite star trail photos, post-processing method of night sky star trail photos
【Unity3D】相机
网络个各种协议
LevelSequence源码分析
网络基础学习
随机推荐
Golang: go open web service
Pytest | skip module interface test automation framework
Custom IP used in PCIE
Data Analysis 5
leetcode-6132: Make all elements in array equal to zero
sqlserver 对比两张表的差异
小程序全面屏手势配置案例
Pod环境变量和initContainer
力扣周赛304 6135. 图中的最长环 内向基环树
13 - JUC CountDownLatch concurrent programming
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
372. 超级次方
HoloView -- Tabular Datasets
升级为重量级锁,锁重入会导致锁释放?
2022.7.31-----leetcode.1161
好的plm软件有哪些?plm软件排行榜
七夕来袭——属于程序员的浪漫
POJ2031空间站题解
pytest接口自动化测试框架 | 单个/多个参数
请问用flinksql写入数据到clickhouse需要引入什么依赖吗?