当前位置:网站首页>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
边栏推荐
- 七夕来袭——属于程序员的浪漫
- leetcode-6132: Make all elements in array equal to zero
- Microsoft Azure & NVIDIA IoT 开发者季 I|Azure IoT & NVIDIA Jetson 开发基础
- USB Protocol (2) Terminology
- 小程序更多的手势事件(左右滑动、放大缩小、双击、长按)
- Golang: go open web service
- HoloView--live data
- 将aof文件转换为命令waoffle安装和使用
- 走进音视频的世界——mp3封装格式
- What do the values 1, 2, and 3 in nodetype mean?
猜你喜欢
22牛客多校1 C.Grab the Seat (几何 + 暴力)
研发过程中的文档管理与工具
USB 协议 (二) 术语
HoloView--live data
【STM32】入门(一):环境搭建、编译、下载、运行
How to generate and configure public key certificate in Alipay
【HDLBits 刷题】Circuits(1)Combinational Logic
How to use Photoshop to composite star trail photos, post-processing method of night sky star trail photos
JVM内存模型之深究模型特征
Chapter 9 of Huawei Deep Learning Course - Convolutional Neural Network and Case Practice
随机推荐
13 - JUC CountDownLatch concurrent programming
Generate pictures based on the content of the specified area and share them with a summary
pytest接口自动化测试框架 | parametrize源码解析
Golang: go to connect and use mysql
372. 超级次方
Shell executes SQL to send emails
Electromagnetic compatibility introductory tutorial (6) test project
VoLTE Basic Learning Series | Enterprise Voice Network Brief
pytest interface automation testing framework | parametrize source code analysis
[Tear AHB-APB Bridge by hand]~ Why aren't the lower two bits of the AHB address bus used to represent the address?
企业数据虚拟化综合指南
Do I need to introduce any dependencies to write data to clickhouse using flinksql?
POJ2031空间站题解
Go 支持 OOP: 用 struct 代替 class
三维坐标系距离
codeforces每日5题(均1600)-第二十七天
基于tika实现对文件类型进行判断
MySQL查询进阶——从函数到表连接的使用你还记得吗
数据分析5
22牛客多校1 J.Serval and Essay (启发式合并)