Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于:
结果如下所示:http://localhost/site/path/#anchor1/ 查看源代码结果如下:
http://localhost/site/path/#anchor1/
您的 URL 的哈希部分有一个斜杠。浏览器将寻找一个带有name=anchor1/(or id=anchor1/) 的命名锚点,它显然不存在。找到尾部斜杠的来源并将其删除。
name=anchor1/
id=anchor1/