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.
我有商店('mystore')我想检查给定的商店是否为空,请帮助我我对 ExtJs 很陌生。我阅读了 ExtJsAPI 但我找不到解决方案
if(isempty(mystore)){ do something.... }
if(mystore.getCount()==0) { //do something }
店铺的使用getTotalCount方法。
getTotalCount
if(store.getTotalCount()>0){ //Store is not empty } else{ //Store empty }
或使用Ext.isEmpty方法。
Ext.isEmpty
if(!Ext.isEmpty(store)){ //Store is not empty } else{ //Store empty }