标签:
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");
标签:
原文地址:http://www.cnblogs.com/zhanghuiyun/p/5627507.html