比如訪問www.baidu.com,url顯示成www.baidu.com/?form
<script type="text/javascript"> if(location.href.indexOf('?') ==-1){ location.href=location.href+"?from"; } </script
可以在任何網站,F12鍵,在審查元素console里面 直接輸入
if(location.href.indexOf('?') ==-1){ location.href=location.href+"?from"; }
查看當前瀏覽器地址欄url的變化