比如访问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的变化

 

相关文章:

  • 2021-11-16
  • 2022-03-09
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2022-12-23
相关资源
相似解决方案