20211014 - encodeURI() 解决中文等字符报错的问题
2021-10-14 00:00:00
1 | const item = encodeURI(request.params.item) |
注意:要在server端,也就是在node.js里对搜索关键词加encodeURI()!在前端写无效哈哈,因为后端才是the one that 直接向API发送get请求的。
参考:
TypeError: Request path contains unescaped characters, how can I fix this
nodejs请求Request path contains unescaped characters
错误解决: Request path contains unescaped characters_coderbin的博客-CSDN博客