Package getQueryString () method to get the Value value of the URL

Scan the QR code to enter the page, and intercept the value after the url “?”. The url is…/monitorScreen/category.html?ridgeCode=ZT1S010005

< pre>function getQueryString(name) {

var reg = new RegExp(“(^| &)” + name + “=([^&]*)(&|$)”, “i”);

var url = window.location.search;

var r = url.substr(1).match(reg) ;

if(r != null) return unescape(r[2]);

return null;

}

var code = getQueryString(‘ridgeCode’);

The printing code is ZT1S010005

function getQueryString(name) {

var reg = new RegExp("(^| &)" + name + "=([^&]*)(&|$)", "i");
var url = window.location.search;
var r = url.substr(1).match(reg) ;
if(r != null) return unescape(r[2]);
return null;
}
var code = getQueryString(‘ridgeCode’);

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2811 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.