亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        JavaScript獲取url參數(shù)的值

        字號:


            JavaScript獲取url參數(shù)的值
            ORYX.Utils = {
            /**
            * General helper method for parsing a param out of current location url
            * @example
            * // Current url in Browser => ""
            * ORYX.Utils.getParamFromUrl("param") // => "value"
            * @param {Object} name
            */
            getParamFromUrl: function(name){
            name = name.replace(/[\[]/, ", "]");
            var regexS = "[\\?&]" + name + "=([^&#]*)";
            var regex = new RegExp(regexS);
            var results = regex.exec(window.location.href);
            if (results == null) {
            return null;
            }
            else {
            return results[1];
            }
            }
            }