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.
我正在尝试获取我在网格中使用的商店的大小。但是我找不到任何方法来获取商店的大小(网格中的记录数)。
任何人都可以帮忙,我怎么能做到这一点。
谢谢, 内哈
有 getCount() 方法来获取商店中的元素数量。
store.data.length会给你记录的数量。
store.data.length