We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
san-router/test/index.js
Line 460 in 7d0ab32
ie下的 hash 没有对中文URI 进行编码,其 location.hash 和 location.href 都保留中文编码:
#/route-test/non/asc/你好
http://127.0.0.1:5500/test/?spec=Router%20by%20handler%2C%20should%20call%20handler%2C%20match%20non%20ascii%20string%20as%20rule%20%3Axxx#/route-test/non/asc/你好
在代码
san-router/index.js
Line 482 in 7d0ab32
decodeURIComponent
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1. 版本: 1.2.4
2. 测试用例:
san-router/test/index.js
Line 460 in 7d0ab32
在 ie8 或 ie11 下运行出错。
3. 原因分析:
ie下的 hash 没有对中文URI 进行编码,其 location.hash 和 location.href 都保留中文编码:
#/route-test/non/asc/你好
http://127.0.0.1:5500/test/?spec=Router%20by%20handler%2C%20should%20call%20handler%2C%20match%20non%20ascii%20string%20as%20rule%20%3Axxx#/route-test/non/asc/你好
4. 建议:
在代码
san-router/index.js
Line 482 in 7d0ab32
中增加
decodeURIComponent
The text was updated successfully, but these errors were encountered: