獲取url參數jquery或如何在js中獲取查詢字符串值 - Get url parameter jquery Or How to Get Query String Values In js

問題:

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

  1. Does sent exist? sent是否存在?
  2. 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
相關文章
相關標籤/搜索