location.href = location.href.substring(0,location.href.lastIndexOf('?'))+'?typeId=' + fid + '&page=' + page;
其实这样写就可以了:
location.href ='?typeId=' + fid + '&page=' + page;
本文共 221 字,大约阅读时间需要 1 分钟。
location.href = location.href.substring(0,location.href.lastIndexOf('?'))+'?typeId=' + fid + '&page=' + page;
其实这样写就可以了:
location.href ='?typeId=' + fid + '&page=' + page;
转载于:https://www.cnblogs.com/goding/p/5013584.html