How does JQ get the parameter value after the domain name question mark?

how do I get the parameter values after the current domain name says hello?
www.baidu.com? Keywordid= {keywordid} & keyword= {keyword} & userid= {userid} & planid= {planid}
get all the values in curly braces
to pass by. Thank you!


Baidu take a bunch of
such as this


you need to specify whether it is a key-value pair form or just get the value


after this division, you can take it, and you can take it 24 6 8 10.


function getURLParameter(name){
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return decodeURI(r[2]); return null;
}

getURLParameter ('keywordid'). Replace (' {','). Replace ('}',');


www.baidu.comkeywordid={keywordid}&keyword={keyword}&userid={userid}&planid={planid}

this is just a string of strings, which can be divided in a basic way. You can try it yourself

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eac9e1-20ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eac9e1-20ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?