当前位置:网站首页>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
边栏推荐
猜你喜欢
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
Case practice --- Resnet classic convolutional neural network (Mindspore)
研发过程中的文档管理与工具
SAP ABAP ALV+SMARTFORS 表分页 报表打印程序
Image lossless compression software which works: try completely free JPG - C image batch finishing compression reduces weight tools | latest JPG batch dressing tools download
SaaS安全认证综合指南
自制一款远程控制软件——VeryControl
【编程之外】当遮羞布被掀开,当人们开始接受一切
走进音视频的世界——mp3封装格式
leetcode-6132: Make all elements in array equal to zero
随机推荐
HoloView -- Tabular Datasets
关于App不同方式更新的测试点归纳
Upgrade to heavyweight lock, lock reentrancy will lead to lock release?
【ASWC Arxml结构分解】-7-Explicit(显式)和Implicit(隐式) Sender-Receiver communication描述差异
力扣周赛304 6135. 图中的最长环 内向基环树
搜索框字符自动补全
The socket option
C语言学习概览(三)
Delphi MDI appliction 文档最大化显示、去掉最大化最小化等按钮
最小生成树
pytest接口自动化测试框架 | 跳过测试类
POJ2421道路建设题解
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
C语言学习概览(二)
自定义IP在PCIE中使用
自制一款远程控制软件——VeryControl
USB Protocol (2) Terminology
pytest接口自动化测试框架 | 集成Allure测试报告
pytest接口自动化测试框架 | parametrize叠加使用
Data Analysis 6