IE中施用window.location时会忽略base href值

IE中使用window.location时会忽略base href值IE中使用Window.location时会忽略base href 这样写可以解决:w

IE中使用window.location时会忽略base href值

IE中使用Window.location时会忽略base href值 

这样写可以解决:

window.location = document.getElementsByTagName("base")[0].getAttribute("href")+ "loc";