Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于在ie中location.origin和别的浏览器不同 #184

Open
ckinmind opened this issue Jun 12, 2019 · 0 comments
Open

关于在ie中location.origin和别的浏览器不同 #184

ckinmind opened this issue Jun 12, 2019 · 0 comments

Comments

@ckinmind
Copy link
Owner

window.location在ie和别的标准浏览器中表现不同,在ie下location.origin为undefined, 最后通过location.href拿到当前的访问地址(暂时解决问题), 然后网上看到的几个解决方案,有一个用location.protocal也是undefined, 特此记录一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant