当前位置:网站首页>The location search property gets the login user name
The location search property gets the login user name
2022-07-05 08:47:00 【Wang Xiaoting】
Definition and Usage
search Property is a readable and writable string , You can set or return to the current URL The query part of ( question mark ? The next part ). grammar
location.search
Now get username=mote Get mote that will do
Open the browser's console Input
location search
Can get links ? Back section
Then segment the obtained string
Definition and Usage :split() Method is used to split a string into an array of strings . Then get the subscript value you want from the array
location.search.split("=")[1]
边栏推荐
- Typical low code apaas manufacturer cases
- Basic number theory - factors
- Programming implementation of ROS learning 2 publisher node
- TypeScript手把手教程,简单易懂
- One dimensional vector transpose point multiplication np dot
- [牛客网刷题 Day4] JZ55 二叉树的深度
- Shift operation of complement
- 深度学习模型与湿实验的结合,有望用于代谢通量分析
- Guess riddles (11)
- 319. Bulb switch
猜你喜欢
TypeScript手把手教程,简单易懂
Guess riddles (142)
Halcon snap, get the area and position of coins
Guess riddles (8)
Matlab tips (28) fuzzy comprehensive evaluation
Arduino operation stm32
Business modeling of software model | stakeholders
Halcon color recognition_ fuses. hdev:classify fuses by color
Programming implementation of subscriber node of ROS learning 3 subscriber
Guess riddles (2)
随机推荐
Adaboost使用
Halcon wood texture recognition
[牛客网刷题 Day4] JZ35 复杂链表的复制
319. 灯泡开关
猜谜语啦(2)
[daiy4] copy of JZ35 complex linked list
多元线性回归(梯度下降法)
kubeadm系列-02-kubelet的配置和启动
One question per day - replace spaces
[牛客网刷题 Day4] JZ32 从上往下打印二叉树
Digital analog 1: linear programming
Yolov4 target detection backbone
MPSoC QSPI Flash 升级办法
RT-Thread内核快速入门,内核实现与应用开发学习随笔记
Redis实现高性能的全文搜索引擎---RediSearch
The first week of summer vacation
It cold knowledge (updating ing~)
Halcon shape_ trans
MATLAB小技巧(28)模糊綜合評價
Business modeling of software model | object modeling