Skip to content

vitepress-docAPI


函数: getSecondLastRowCount()

获取Flex布局中指定倒数行的卡片数量

getSecondLastRowCount(containerSelector, cardSelector, row): 0 | object

参数

参数Type默认值Description
containerSelectorstringundefined卡片容器的 CSS 选择器
cardSelectorstringundefined单个卡片的 CSS 选择器
rownumber2倒数行

返回值类型

0 | object

倒数第二行的卡片的开始索引和结束索引,以及数量(无则返回 0)

方法名称

获取Flex布局中指定倒数行的卡片数量

查看源码

native/tool.ts:77

Released under the MIT License.