如何确定 XTemplate 中的 JSON 对象为空?我试过了
<tpl if="myObject != {}">
<tpl if="myObject">
<tpl if="myObject != undefined">
等,但似乎无法找到检测空对象的正确方法。谢谢。
最佳答案
<tpl if="!Ext.isEmpty(myObject)">
关于json - ExtJS XTemplate 和空 JSON 解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3843154/