【发布时间】:2016-03-18 20:30:53
【问题描述】:
如何在 head 文档中的 <!-- example comment --> 之后插入 html。例如,我想在特定的注释标记之后用 jquery 在 head 部分中附加 css。
$('<link>', {
rel: 'stylesheet',
href: url
}).appendTo($("<!-- Related css to this page -->"));
【问题讨论】:
标签: jquery html append comments insertafter