$("p").parents(".selected").css("background", "yellow"); 會發現123 跟Hello Again 都變色了 結論: parent() 只往上查找一層 closest() 往上查找 ...
確定! 回上一頁