![]() |
傲视众生的佛珠 · Auto.js ...· 9 月前 · |
![]() |
逃课的风衣 · PrimeFaces 8.0 ...· 1 年前 · |
![]() |
无聊的松球 · 如何用PaddleDetection做一个完 ...· 2 年前 · |
![]() |
仗义的登山鞋 · 凭借SpringBoot整合Neo4j,我理 ...· 2 年前 · |
url js获取当前url js获取url参数 nslog |
https://cloud.tencent.com/developer/information/next.js%20url%E5%8F%82%E6%95%B0 |
![]() |
纯真的柑橘
2 年前 |
的href属性,但是一般在做项目的时候是不会只仅仅跳转的一般是带有一个或者是多个 参数 的,然后在下一个页面将 参数 传递过去,这个时候很多的方法都是可以取到的,今天说的是基于jQuery取 参数 (虽然很简单 name=123&id=1234">点击测试获取 url 参数 </body> </html> 这是一个简单的H5页面,显示的效果是: 这个时候我们是写了两个 参数 的,name和id,这个时候我们写一段js: /*获取到 Url 里面的 参数 */ (function ($) { $.getUrlParam = function (name) 中的name是:</label> <input type="text" id="addname" /> <label>测试 URL 中的id是:</label> <input type="text " id="addid" /> </body> </html> 我们点击测试 URL 参数 页面: ?