问题:
I have seen lots of jQuery examples where parameter size and name are unknown. 我已经看到许多jQuery示例,其中参数大小和名称是未知的。 My url is only going to ever have 1 string: 个人网址只会有1个字符串: jquery
http://example.com?sent=yes
I just want to detect: 我只想检测: url
- Does
sent
exist?sent
是否存在? - Is it equal to "yes"? 等于“是”吗?
解决方案:
参考一: https://stackoom.com/question/1JmaO/获取url参数jquery或如何在js中获取查询字符串值参考二: https://oldbug.net/q/1JmaO/Get-url-parameter-jquery-Or-How-to-Get-Query-String-Values-In-js