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.
假设我有一个变量:
var $box = $(this).next('widget');
现在说我想让小部件 div 内的另一个 div 淡出。我怎样才能访问 box 变量中的那个 div?
var $box = $(this).next('widget'); $box.find('#your_div').fadeOut(); // #your_div is just a selector, // you may have something different