jq js 获取子元素

js

this.children[1].className=""
this.firstChild.className = ""
this.lastChild.className = ""
this.children[1].style.fontWeight="bold"

jq

$(this).siblings()[i].firstChild.className = "line"
$(this).siblings()[i].lastChild.className = "menu-item-list"
$(this).siblings()[i].firstChild.nextSibling.className="menu-parent"
$(this).css(name,value)


原文地址:https://www.cnblogs.com/youngMan-MrS/p/12668213.html