移动端刷新页面后,刷新不到输入参数的页面,总是刷新到录入参数后的页面 setTimeout(function() { //获取当前页面参数 var selector1 = selector; var starttime1 = starttime; var endtime1 = endtime; var year1 = year; var quarter1 = quarter; var monthly1 = monthly; var tendays1 = tendays; var start1 =start; var end1 = end; //拼接主页面url,带当前tab页号为参数,注意要加op=h5 urla = FR.cjkEncode("${servletURL}?viewlet=homepage1.frm&op=h5&selector=" + selector1 +" &starttime=" + starttime1+" &endtime=" + endtime1 +" &year=" + year1 +" &quarter=" + quarter +"&monthly=" + monthly +"&tendays=" + tendays1 +"&start=" + start1 +"&end=" + end1 +" "); //重写当前主页面的url var state = { title: "title", url: "#" }; window.history.pushState(state, "title", urla); //跳转到下个页面 var url = FR.cjkEncode("${servletURL}?viewlet=longjudemo%252Frevenue%252Frevenue.frm&op=h5&selector=" + selector1 +" &starttime=" + starttime1+" &endtime=" + endtime1 +" &year=" + year1 +" &quarter=" + quarter +"&monthly=" + monthly +"&tendays=" + tendays1 +"&start=" + start1 +"&end=" + end1 +" "); FR.doHyperlinkByGet({ url: url, title: '123' }); }, 100); 可以跳转到下一个页面,但是返回到上一个页面显示打不开网页 |