Jquery-------獲取網頁參數

 

看以下代碼:

spa

function getURLParameter(name) {
                return decodeURI(
                    (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1]
                );
            }
相關文章
相關標籤/搜索