[removed].reload(); not working for Google chrome

后端 未结 7 855
滥情空心
滥情空心 2020-12-18 23:08

I am using AJAX action after getting the response, I want to reload the current page, for which I am using:

 window.location.reload();

It w

7条回答
  •  清酒与你
    2020-12-18 23:42

    If you are working with AJAX, you have to do the reload inside the success function.

    $.ajax({
        type: 'POST',
        data: '',
        url: '',
        success: function(data){
            setTimeout(function(){
                window.location.reload();
            },100);
        },
        error: function(){
    }
    

提交回复
热议问题