问一下两种方法的区别
我用第一种程序报错,第二种程序就没有错误

解决方案 »

  1.   

    window.location.reload()就只是重载当前页面的URL
    reload--------------------------------------------------------------------------------DescriptionReloads the current page. Syntax
    object.reload([bReloadSource] )Parameter Description 
    bReloadSource  Optional. Boolean value specifying whether to reload the page from the cache or server. If TRUE, the page is reloaded from the server. By default, this parameter is FALSE. ---------------------------参数为boolean型的,是否从缓存或服务器上来载入页面window.location = "";  是载入给它的那个URL...