extjs4 form.Panel

来源:互联网 发布:网络歌手想你的感觉 编辑:程序博客网 时间:2024/05/17 20:34

    

    重载 initComponent的时候,忘记调用this.callParent();了

    结果在里面写 getForm() 的时候总是提示未定义,但是用firebug可以看到getForm函数,还以为是 继承 ext.form.Panel的时候少写了东西。


    使用store load的时候,如果直接在initComponent里面调用store,会发现store内部的record为空,是因为store是异步的,在initComponent的时候,store还没加载完

   所以store.getCount() 为0