我发现 SO 的评论可以被锚定并且我很难理解实施。以下链接是锚定评论的示例:
http://SO/questions/26696064/slug/26699358?noredirect=1#comment41994753_26699358
根据我对html的理解, html页面中肯定存在comment41994753_26699358
after #
,但是我没有找到id
or name
。当我阅读源代码时,我只找到相关的源代码:
<div id="comments-26699358" class="comments ">
<table>
<tbody data-remaining-comments-count="0" data-canpost="true" data-cansee="false" data-comments-unavailable="false" data-addlink-disabled="false">
<tr id="comment-41994753" class="comment ">
这个片段只告诉我两个相对和分开的 idid="comment-41994753"
和id="comments-26699358"
,最终的锚comment41994753_26699358
是从它们生成的吗?或者这与所使用的框架有关?