http://www.w3school.com.cn/ta.
, it is written in the url number that the :
number is converted to % 3a
, but:
1, enter www.baidu.com?x=a b
in the browser, and it will be converted to https://www.baidu.com/?x=a%20b
. However, entering wwww.baidu.com?x=a:b
will not transcode.
2, decodeURL ("3a") will not convert
3, At the same time, I checked the information https://www.baidu.com/s?ie=ut., it is mentioned that :
colons are legal characters.
how do you explain this contradiction? How do I convert 3a
received by Node.js to :
colon? (if replace () is not used)