如果给定一个表示DOM 元素集合的jQuery 对象,.parent() 方法允许我们在DOM 树中搜索这些元素的父 ... $('li.item-a') .parent() .css('background-color', 'red');.
確定! 回上一頁