日期:2014-05-16  浏览次数:20370 次

为什么火狐下window.location.reload(true);不刷新页面?
<input class=\"sub_lert\"  type=\"submit\" id=\"btnGoOn\" value=\"继续添加\" />

 $("#btnGoOn").click(function () {
                            //var num = Math.round(Math.random() * 10000);
                            //window.location.href = window.location.href + '?refresh';
                            //window.location.href = window.location.href + "?" + num;
                            $("#popup_ok").click();
                            window.location.reload(true);                     //location.reload(false);
                        });


有个页面录入一些信息,提交成功后 点击“继续添加”页面刷新(置空input),在IE下没有问题,可在火狐下 试了以上方法 都不刷新。不知道为什么 求解决!
火狐 jquery javascript 浏览器兼容性

------解决方案--------------------
alert('reload')
window.location.reload(true);
 

加那句看看执行到那句代码没有,没有就是前面的出问题了,刷新语句在firefox下也是那个来的
------解决方案--------------------
试试
window.location.href=window.location.href