标签:字符串替换 string str out 参数 route 替换 字符串 let
let parmId =self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$1");//获取传递Id
let states = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$2");//状态
let potion = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$3");//获取传递内容
let parm = "?activityId="+parmId+"&option="+states;
self.url = self.$route.path.replace(/.+\?cid=(.*)\&states=(.*)\&potion=(.+)\&url=(.+)/g,"$4");//获取上个路径的url参数
标签:字符串替换 string str out 参数 route 替换 字符串 let
原文地址:http://www.cnblogs.com/zhujiasheng/p/6101966.html