removeClass ('active'); }); });. this()與加入siblings()的差異範例. 如下範例中如果li內還有a使用siblings()會無效,因為li內的a無其他同層元素。
確定! 回上一頁