Mootools 可以像这样淡化所有匹配选择器的节点:
$$('#div img').fade(0.3);
我需要一种跳过特定节点的方法。在 jQuery 世界中,我会使用 not(),它会是这样的:
$$('#div img').not( oneElement ).fade(0.3);
但我找不到任何方法在 mootools 中展示类似的行为。有人知道吗?
最佳答案
$$('#div img').erase(oneElement).fade(0.3);
关于javascript - mootools 是否提供了一种方法来 fade() 除了一个元素之外的所有元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3911872/