問題タブ [nsurlcomponents]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - スペースを %20 に、次に %20 を %2520 に迅速に変換する URL エンコーディング
ここにコードがあります
URLItem は正しい出力を提供しますが。しかし、URL コンポーネントに追加すると、この結果が得られます。
必須: https://xxxxxxxxx.net/api/v1/merchant/list?q=filter&showRPPS=true&industry=insurance%20sys
実際:https ://xxxxxxxxx.net/api/v1/merchant/list?q=filter&showRPPS=true&industry=insurance%2520sys
swift - 「パス」部分で URLComponents が失敗する
path
もっと複雑な場合はどうなりますか?URLComponenets を取得するにはどうすればよいですか?パスはこれですか?
残念ながら、ここで失敗します: