$ (Document). ready (function (){
$ ("# Sonpage_title" pai.html (decodeURI (getQueryStringByName ('title ')));
});
Function getQueryString (){
Var result = location. search. match (new RegExp ("[\? \ &] [^ \? \ &] + = [^ \? \ &] + "," G "));
For (var I = 0; I <result. length; I ++ ){
Result [I] = result [I]. substring (1 );
}
Return result;
}
// Obtain the value based on the QueryString parameter name
Function getQueryStringByName (name ){
Var result = location. search. match (new RegExp ("[\? \ &] "+ Name +" = ([^ \ &] +) "," I "));
If (result = null | result. length <1 ){
Return "";
}
Return result [1];
}
// Obtain the value based on the QueryString parameter index
Function getQueryStringByIndex (index ){
If (index = null ){
Return "";
}
Var queryStringList = getQueryString ();
If (index> = queryStringList. length ){
Return "";
}
Var result = queryStringList [index];
Var startIndex = result. indexOf ("=") + 1;
Result = result. substring (startIndex );
Return result;
}
Author: "Technical blog"