我定义了一个Ext.window,里面有一个窗体,窗体包含一个网格。当我试图通过window.show()第一次点击按钮显示它,它的工作正常, 但是当我第二次单击按钮“this.object为null或不是一个对象,行: 12“出现错误。我点击按钮加载网格存储。 有人帮助。Extjs:“this.view is null or not an object”error
回答
你对窗户的关注是什么?如果它是“销毁”,这是默认的,它会销毁所有子元素。尝试将窗口的“closeAction”设置为“隐藏”。
would'nt window.close()工作? – sainath 2012-03-02 05:31:22
window.close()确实会关闭窗口。但是,他的问题似乎在第一次之后显示。窗口的默认关闭操作是“销毁”,如果您有任何子组件,或者甚至是对所述对象的变量引用,则可能会导致问题,您将在稍后尝试引用它。 – 2012-03-02 05:35:30
如果您使用closeAction:'close'(默认值),则无法使用show()重新打开该窗口。如果您使用closeAction:'hide',那么窗口可以显示并隐藏,但您必须使用hide()和show()调用来执行此操作。 我从亚当的线索得到了这个从其他stackoverflow q's。 谢谢亚当。问题解决了 – sainath 2012-03-02 05:42:56
- 1. “getElementById(...)。options is null or not an object”in IE7 only
- 2. “numpy.ndarray is object is callable”error in initiated an function
- 3. $ .each returns'undefined is not an object'
- 4. 多个IS NOT NULL使用OR操作
- 5. JS:“TypeError:'undefined'is not an object”
- 6. customAdapter for object is not
- 7. “'generator'object is not subcriptabletable”error
- 8. React code throwing“TypeError:this.props.data.map is not an function”
- 9. Where-object-or not working
- 10. View is not reading session or flashdata
- 11. T-SQL IS NOT NULL VS NOT NULL性能
- 12. flash actionscript error 5007 while file is not linked or included in any way
- 13. error'_'is not defined no-undef
- 14. xo lint error:`document` is not defined
- 15. Javascript:“[classname] is not defined”error
- 16. Ruby String Object Empty or Not?
- 17. Javascript undefined error:`this` is null
- 18. JPQL查询IS NOT NULL
- 19. Extjs superboxselect keyup event is not firing
- 20. SSIS派生列IS NOT NULL或OR表达式
- 21. 在Windows上'Java is not recognized ...'error'
- 22. DataMapper的IS NOT NULL查询
- 23. sqlalchemy IS NOT NULL请选择
- 24. PDO和IS NOT NULL功能
- 25. psql IS NOT NULL返回f
- 26. if(String == null or String ==“”)not activate
- 27. beforeresize and resizedrag is not get called extjs
- 28. “x IS NULL”和“NOT(x IS NOT NULL)”之间的区别是什么?
- 29. 'Microsoft.ACE.OLEDB.12.0'provider is not registered on local machine error
- 30. SubSonic3 Linq查询生成 “IS NOT NULL”,而不是 “IS NULL”
需要看一些代码才能知道问题是什么 – Geronimo 2012-03-02 05:20:18
ya,这是代码 – sainath 2012-03-02 05:28:15