© 使用 Spring-Data-Rest 和 Angular 2
% URL 编码代码 %25 ( http://www.w3schools.com/tags/ref_urlencode.asp )
首先;
http://localhost:4200/members/http%3A%2F%2Flocalhost%3A8080%2FErPApI%2Forganizations%2F1/detail
当导航此 URL 并再次重新加载页面或复制粘贴新标签页链接时
% 再次编码 %25。每次重新加载它。
所以我丢失了成员(member)ID。我怎样才能再次阻止编码 %?
最佳答案
我在获取链接的时候用了下面的方法
decodeURIComponent()
关于spring - 每次重新加载时 % 符号在 URL 中编码为 %25,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42207812/