【发布时间】:2015-07-30 05:08:27
【问题描述】:
我想换
<div class="blog">Blog</h1>
与
<h1>Blog</h1>
在类名“sidebar”中
我使用了这段代码但没有用:
$(window).load(function() {
$( ".sidebar h1" ).replaceWith( "<div class="blog">Blog</h1>" );
}
我的代码有什么问题?
【问题讨论】:
标签: jquery replacewith