当前位置:网站首页>JS get the parameters in the URL link
JS get the parameters in the URL link
2022-06-25 19:40:00 【Bin daotianxia】
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}js Write this in , Then call the parameters where they are used
getQueryVariable("ddb")Source connection example www.baidu.com/index.html?ddb=abc123&cca=efg456
var Parameters =getQueryVariable("ddb");
So parameters Just == abc123边栏推荐
- PHP little knowledge record
- Tiger DAO VC产品正式上线,Seektiger生态的有力补充
- PostgreSQL user role permissions
- Idea common plug-ins
- User management and permissions
- Analysis on development scale and development trend of China's night economy industry in 2021 [figure]
- Favorite PHP debugging methods
- QQ robot official plug-in loading configuration method [beta2 version]
- Tcp/ip test questions (II)
- Oriental Wealth function (the most complete edition of Childe Yong)
猜你喜欢

Ali visual AI training camp -day03- construction of electronic photo album (face and expression recognition)

JVM|运行时数据区(堆空间)

Huawei released two promotion plans to promote AI talent development and scientific research innovation

Analysis on employment compensation of 2021 college graduates: the average monthly starting salary of doctors, masters, undergraduates and junior colleges is 14823 yuan, 10113 yuan, 5825 yuan and 3910

The native JS mobile phone sends SMS cases. After clicking the button, the mobile phone number verification code is sent. The button needs to be disabled and re enabled after 60 seconds

Can GoogleSEO only do content without external chain? (e6zzseo)

JVM | runtime data area (heap space)

Does GoogleSEO need to change the friend chain? (e6zzseo)

揭秘GES超大规模图计算引擎HyG:图切分

Guangzhou Sinovel interactive creates VR Exhibition Hall panoramic online virtual exhibition hall
随机推荐
2020-12-09 laravel . Env file loading mechanism process
Yum command
Analysis of China's road freight volume, market scale and competition pattern in 2020 [figure]
Redis cache preheating & avalanche & breakdown & penetration
ECS 7-day practical training camp (Advanced route) -- day04 -- build a portal using ECs and polardb
Analysis on employment compensation of 2021 college graduates: the average monthly starting salary of doctors, masters, undergraduates and junior colleges is 14823 yuan, 10113 yuan, 5825 yuan and 3910
Mail monitoring cloud script execution progress
Guangzhou Sinovel interactive creates VR Exhibition Hall panoramic online virtual exhibition hall
什么是算子?
Comparison rules of strings in JS
Kotlin Compose 终结toDo项目 点击可以编辑修改todo
Principles of MySQL clustered index and non clustered index
Tcp/ip test questions (III)
Process of vacuum and vacuum full
Many varieties of EA can be used
Leetcode-101-symmetric binary tree
Tiger DAO VC产品正式上线,Seektiger生态的有力补充
What is an operator?
Oriental Wealth function (the most complete edition of Childe Yong)
Combing the latest Data Mining Event Scheme!