How can I refresh a page with jQuery?

后端 未结 28 3145
刺人心
刺人心 2020-11-22 07:00

How can I refresh a page with jQuery?

28条回答
  •  面向向阳花
    2020-11-22 07:29

    You can use JavaScript location.reload() method. This method accepts a boolean parameter. true or false. If the parameter is true; the page always reloaded from the server. If it is false; which is the default or with empty parameter browser reload the page from it's cache.

    With true parameter

    
    

    With default/ false parameter

     
    

    Using jquery

    
    
    

提交回复
热议问题