锚点不是直接定位到所需的位置么?为什么加上base标签换个基准URL就会重新加载,是不是点击锚点先重新发送http请求加载页面然后再定位?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
<base> causes the browser to no longer use the URL of the current document. Instead, use the specified base URL to resolve all relative URLs. This includes URLs within an <img>, <link>, <form> tags. -------W3C
<base> causes the browser to no longer use the URL of the current document. Instead, use the specified base URL to resolve all relative URLs. This includes URLs within an <img>, <link>, <form> tags. -------W3C