window.location.assign用法
function historySearch() { var starttime = jQuery("#datetime").html(); var endtime = jQuery("#datetime2").html(); if (starttime == "起始时间" || endtime == "终止时间") { return; } window.location.assign("goodsindex.do?method=historySearch&starttime=" + starttime + "&endtime=" + endtime + "&searchtype=" + searchtype + "&searchvalue=" + searchvalue); }
页:
[1]