1 //地址栏参数获取 2 function GetQueryString(name){ 3 var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); 4 var r = window.location.search.substr(1).match(reg); 5 if(r!=null)return unescape(r[2]); return null; 6 } 7 var good_id=GetQueryString("good_id");
时间: 2024-10-13 10:38:01