html——jquery获取父子兄弟节点

	$("#test1").parent(); // 父节点
	$("#test1").parents(); // 全部父节点
	$("#test1").prev();  // 上一个兄弟节点

转自:
https://www.cnblogs.com/milletHandsome/p/11887833.html

发布了68 篇原创文章 · 获赞 12 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_35077107/article/details/105329889