Page judgment jump path

Jump record about this page has been refreshed.

1. The width of the page is determined to jump to the page is determined (core code). Note: Here we want to create an empty file to do a jump

var windowWidth = $(window).width();
var code = window.location.href.getQuery("code");
if(windowWidth>640){
    window.location.href = 'checkwebCode.html?code='+code
}else{
window.location.href = 'checkappCode.html?code='+code;
}

If the current file, jump to judge, will trigger this problem has been refreshed.

Guess you like

Origin www.cnblogs.com/Arthur123/p/12159150.html