摘要: 1、prev 查找当前兄弟节点中的上一个节点 2、next 查找当前兄弟节点中的下一个节点 <script>$(function(){ $("h3").prev().css("backgroundColor", "red"); $("h3").next().css("backgroundColor" 阅读全文
posted @ 2020-05-26 12:31 小小稻草ren 阅读(24) 评论(0) 推荐(0)