getData("name");
//接收url传送参数obj
function getData(data){
//console.log("URL "+window.location.search);
var reg = new RegExp("(^|&)"+ data +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}