$("<p style='color:red'>啦啦啦</p>").insertBefore(".test1")
$("<p style='color:yellow'>123</p>").insertAfter(".test1")
$("<p style='color:blue'>123</p>").appendTo(".test1")
$(".test1").prepend("<p style='color:#098'>啦啦啦</p>")
$("<p style='color:yellow'>123</p>").insertAfter(".test1")
$("<p style='color:blue'>123</p>").appendTo(".test1")
$(".test1").prepend("<p style='color:#098'>啦啦啦</p>")
2017-07-13
$('li.item-2').next().css('border','1px solid red')
$('li.item-2').css('border','1px solid red')
实现的效果一样.
$('li.item-2').css('border','1px solid red')
实现的效果一样.
2017-07-13