可以使用如下的代码快速的取得GET search的值
1 local=window.location.search.substr(1);2 search='';3 if(/search=([^&]+)/.test(local)){4 search=RegExp.$1;5 }
OK大功造成了。
雪冰出品
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3