传值js写法:
/*跳转传值页面*/
window.location.href="http://地址?id="+参数+""
接受值js写法1.
var id= location.search.replace(/[^\d]/g, "")
alert(id);
接受值js写法2.
var url = document.location.href;
var urlList = url.split('=');//“=”代表你拿哪个标点符号后的值例如:“/”“?”
var a = urlList[urlList.length-1].split('.')[0];
alert(a);