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.
我试图在 webview 中加载一个包含“>”符号的 url,但它失败了。为我提供一些解决此问题的提示。
谢谢
使用转义>字符%3e。以下是应在 URL 中转义的字符列表。
>
%3e
你可以使用这个:
NSString *myStr = @"< script >"; [myStr stringByAddingPercentEscapesUsingEncoding: ... ];