首页 > 解决方案 > Chrome 和 Internet Explorer 的相同场景的不同输出

问题描述

在 chrome redirectURL = headers['location'] 中,在同一场景中,Internet Explorer 具有 redirectUrl = err.url

var redirectUrl = err.url;
//alert('location' in headers);
if ('location' in headers) {
    //alert(headers['location']);
    redirectUrl = headers['location'];
}
location.replace(redirectUrl);

标签: angularinternet-explorer

解决方案


推荐阅读