Javascript Regular Expression Match 正则表达式的匹配

要说的是,返回的变量是字符串数组,不是字符串。例如:

        var url = location.search.match(/&Location=[w]+/i);
        if(url.length == 0)
            return;
        var loc = url[0].replace('&Location=','');

原文地址:https://www.cnblogs.com/sungang3225/p/3809191.html