JS获取最终表单上的所有URL参数
我看到很多方法,其中许多似乎过于复杂。 我确实计划附加一个程序,该程序将使用这些参数根据结果进行测试。
但是目前,我想要一种获取所有URL参数并使用AP标签发布它们的方法。
I see a lot of ways and a number of them seem overly complicated.
i do plan on appending a program that will use these parameters to test based on the results.
But for now, I want a way to get all the URL parameters and post them using a p tag.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这会回答您的问题吗?您可以使用
url
构造函数获得URL的搜索参数,并访问searchParams
属性。Does this answer your question? You can get the search params of a URL with the
URL
constructor and accessing thesearchParams
property.