可以用jquery的prepend 参照: http://api.jquery.com/prepend/ $('pre').prepend('<b>复制代码</b>');
var d1 = document.getElementById('code'); d1.insertAdjacentHTML('beforebegin', '<b>复制代码</b>');
87,919
社区成员
224,618
社区内容
加载中
试试用AI创作助手写篇文章吧