同位素隐藏项目导致错误
Isotope hide items results in error
我正在尝试用同位素隐藏图像。但是当我打电话给
$grid.isotope('hide', $items)
我收到未捕获的类型错误:item.once 不是函数。
有什么解决办法吗?
好像是个误会
该函数需要同位素对象而不是元素。
https://github.com/metafizzy/isotope/issues/600
reveal and hide are more internal methods, used with filtering, removing, and adding new item elements. But this issue and desandro/masonry#429 have me thinking that they might be more confusing then useful. Currently, they require Array of Isotope.Item, not elements or arrays, so you will need to use getItem to use it.
我正在尝试用同位素隐藏图像。但是当我打电话给
$grid.isotope('hide', $items)
我收到未捕获的类型错误:item.once 不是函数。
有什么解决办法吗?
好像是个误会
该函数需要同位素对象而不是元素。
https://github.com/metafizzy/isotope/issues/600
reveal and hide are more internal methods, used with filtering, removing, and adding new item elements. But this issue and desandro/masonry#429 have me thinking that they might be more confusing then useful. Currently, they require Array of Isotope.Item, not elements or arrays, so you will need to use getItem to use it.