Is there any solution to get the parameters in call URI ?
(有什么解决方案可以获取调用URI中的参数吗?)
Here is my workflow : a user is registrating to a form and then is redirect to an URL I have a URL like this : www.domain-name.com?id_connection=15&code=PRDXXX And when my user land in this page, i'm supposed to make a POST with the PRDXXX to transform a temporary token in definitive token.(这是我的工作流程:用户正在注册到表单,然后重定向到URL我有这样的URL:www.domain-name.com?id_connection=15&code=PRDXXX当我的用户进入此页面时,我m应该与PRDXXX进行POST,以将临时令牌转换为确定令牌。)
Am I supposed to work with the URI to get the code ( for example try a window.location.pathname or something like this) or there is a shortcut solution ?(我是否应该使用URI来获取代码(例如,尝试使用window.location.pathname或类似的名称),或者有一个快捷解决方案?)
Thanks
(谢谢)
ask by Damien Compère translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…