要说的是,返回的变量是字符串数组,不是字符串。例如:
var url = location.search.match(/&Location=[\w]+/i); if(url.length == 0) return; var loc = url[0].replace('&Location=','');
posted on 2014-06-26 00:25 橡皮鱼 阅读(233) 评论(0) 编辑 收藏 举报