Javascript 如何解析节点js请求中的url参数

Javascript 如何解析节点js请求中的url参数,javascript,jquery,node.js,Javascript,Jquery,Node.js,我将url作为参数传递,如下所示 http://localhost:1337/getData?url=%22https://dramaonline.com/%22&type=%22channellist%22您可以使用decodeURIComponent(value)删除这些转义序列: decodeURIComponent('%22https://dramaonline.com/%22&type=%22channellist%22') // ""https://dramaonline.

我将url作为参数传递,如下所示


http://localhost:1337/getData?url=%22https://dramaonline.com/%22&type=%22channellist%22
您可以使用
decodeURIComponent(value)
删除这些转义序列:

decodeURIComponent('%22https://dramaonline.com/%22&type=%22channellist%22')
// ""https://dramaonline.com/"&type="channellist""

您可以使用
decodeURIComponent(value)
删除这些转义序列:

decodeURIComponent('%22https://dramaonline.com/%22&type=%22channellist%22')
// ""https://dramaonline.com/"&type="channellist""