<script> /*http://127.0.0.9/index.php?s=/Home/Index/fangguan_shuju&zc=2*/ function getQueryString (name){ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; }; var aa= getQueryString("zc");//我只获取zc的get值 console.log(aa); </script>
原文地址:https://www.cnblogs.com/zc290987034/p/8462857.html
时间: 2024-11-03 21:47:49