js獲取 url 參數

網上隨便找的一個javascript function getUrlParam(k) { var regExp = new RegExp('([?]|&)' + k + '=([^&]*)(&|$)'); var result = window.location.href.match(regExp); if (result) { return decodeU
相關文章
相關標籤/搜索