location.href导致window自定义的全局变量清除
location.href location.reload 刷新页面会导致window自定义的全局变量清除 angularjs $rootScope, vue store等也会被清除