var url = location.href;
//Get keyword Parameter value
var es=/keyword=/;
es.exec(url);
var result=RegExp.rightContext;
For example:
var url = location.href;
//Get the pid Parameter value
var es=/pid=/;
es.exec(url);
var pid=RegExp.rightContext;
var aurl = "&pid=" pid;
alert(pid);//result :&pid=37
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn