Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个休息网络服务,其网址是
"/services/fetchData?id=value&name=value&date=......" 在上面如果我的名字有 '&' 字符说 'H&M' 然后 M 被忽略。
你能建议我如何避免这种情况吗?
您应该对参数进行urlencode,这样&就变成%26.
&
%26