我正在尝试在单击事件中使用jQuery来复制此HTML。
<div class="comments_action_207">
<div class="list_item_comments list_item_comments_207">
<div class="comment_separator">text goes here</div>
</div>
</div>
在点击事件之前,我有以下HTML:
<div class="comments_action_207"></div>
所以我需要将这个代码添加到之前的代码中
<div class="list_item_comments list_item_comments_207"><div class="comment_separator">text goes here</div></div>
.appendTo(this)
更改为.appendTo('.comments_action_214')
。 - user113716