网上搜的一些方法都不管用
this.$geturlpara.getUrlKey("ip")
或者
getQueryString: function(name) {
var url = this.$getConfig().bundleUrl;
var resultStr = "";
var tempArr = url.split(name + "=");
if (tempArr.length > 1) {
url = tempArr[1];
tempArr = url.split("&");
resultStr = tempArr[0];
}
return resultStr;
},
他都不能解析$后边的?
用vue router的时候可以直接从this.$route.query或者this.$route.params里面取