<div class="cnblogs_code">
获取url链接 u =获取的链接中都有之前的旧锚点, end = u.indexOf("#" rurl = u.substring(0 window.location.href = rurl + "#" + hash = url = hash.substring(1"#ifm").attr("src",url);