//Set the value of param in the current window url
function set_param(param,value){
var query = location.search.substring(1);
var p = new RegExp("( ^|&" param ")=[^&]*");
if(p.test(query)){
query = query.replace(p,"$1=" value);
location.search = '?' query;
}else{
}else{
location.search = '?' query '&' param '=' value;
? Content between the beginning and # (including? but not #).
In the previous page turning code, the above two functions were used
The code is as follows:
var pre_page = parseInt(current_page) - 1;}