Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑下面的代码
$('.item_select').each(List); function List() { var x= this.siblings('.fooClass'); }
当我尝试以这种方式访问兄弟姐妹时,我收到错误 “对象不支持属性或方法‘兄弟姐妹’”
如何访问“this”对象的兄弟姐妹?
$('.item_select').each(List); function List() { var x= $(this).siblings('.fooClass'); }