>当我给出以下内容作为 json 响应时
http://test.com
这正在转换为
http:'/'/test.com
只要有/
它就会转换为/'
。为什么会这样?我怎样才能对此给出适当的回应。
请帮忙
在我看来
,好像网址已被编码。您可以使用以下命令对其进行解码
var url = "http:'/'/test.com"
var decoded_url = decodeURIComponent(url);