第一反应是否是新跳转的页面js有加载刷新的,找了半天没有。后来才知道页面有这样的html标签 代码以下图 html
里边的href=“#” 致使的缘由。code
<a href="#" class="active">会员注册</a>
把a标签里的#去掉就行了。htm
<a href="#" class="active">会员注册</a>
去掉这以后发现仍是会重复刷新,发现 img标签里的src也有#。一样去掉#就行了。图片
<img id="imgVerifycode" src="#" alt="" style="display: none;" title="看不清?换一张">
改成it
<img id="imgVerifycode" src="" alt="" style="display: none;" title="看不清?换一张">