问题描述
仅在Internet Explorer中(适用于Chrome和FireFox),执行位置重新加载行时,脚本不会重新加载页面。 相反,在控制台中,我得到以下两个条目:
Agave.HostCall.IssueCall
Agave.HostCall.ReceiveResponse
为什么会在IE中出现这种情况,而不是其他浏览器以及如何修复它?
函数onQuerySucceeded (){
      var userEmail = web.get_currentUser()。get_email();
      if(userEmail.length> 0){
          location.reload(true);
          clearTimeout(tid);
      }¥b $ b      否则{
          if(tid!= null)
              clearTimeout(tid);
          tid = window.setTimeout(function(){checkForCurrentUser()},1000);
$
      }¥b $ b   }
                   
In Internet Explorer only (works in Chrome and FireFox), when the location reload line is executed the script does not reload the page. Instead, in the console I get the following 2 entries:
Agave.HostCall.IssueCall
Agave.HostCall.ReceiveResponse
Any ideas why this happen in IE, not other browsers and how to fix it?
function onQuerySucceeded() {
var userEmail = web.get_currentUser().get_email();
if (userEmail.length > 0) {
location.reload(true);
clearTimeout(tid);
}
else {
if (tid != null)
clearTimeout(tid);
tid = window.setTimeout(function () { checkForCurrentUser() }, 1000);
}
}
这篇关于Outlook加载项无法重新加载页面location.reload(true);的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!