關於前端傳值問題

localhost:8089/api/list?tag=C++ 使用postman的調url接口,發現後臺接收的字符串爲 因爲base64碼將 「+」 號改成了 空格。(我太難了) 前端傳值將tag urlEncode(tag,「UTF-8」) 後臺 URLDecoder.decode(tag,「UTF-8」) ok!
相關文章
相關標籤/搜索