发送:
接收:
一种方法:
另一端采用js代码
function getQueryString(name) {
var result = window.location.search.match(new RegExp("[\?\&]" + name
+ "=([^\&]+)", "i"));
if (result == null || result.length < 1) {
return "";
}
return result[1];
}
//接收值并alert出来userId
var userId = getQueryString("userId");
alert(userId);