<div class="first"><div>first</div></div>
<div class="second">second</div>
<div class="third">third</div>
$(".first").prepend('prepend');// 子元素的头部追加
$(".first").append('appned');// 子元素的末尾追加
$(".first").before('before');// 该元素的前面追加
$(".first").after('after');// 该元素的后面追加
$(".second").insertBefore($('.first'));// 将second插在first元素的前面
$(".second").insertAfter($('.third'));// 将second插在third元素的后面