我定义了一个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. 多个IS NOT NULL使用OR操作
- 4. “'generator'object is not subcriptabletable”error
- 5. Where-object-or not working
- 6. error'_'is not defined no-undef
- 7. xo lint error:`document` is not defined
- 8. Ruby String Object Empty or Not?
- 9. Javascript undefined error:`this` is null
- 10. psql IS NOT NULL返回f
- 11. if(String == null or String ==“”)not activate
- 12. 'Microsoft.ACE.OLEDB.12.0'provider is not registered on local machine error
- 13. IF(a.testcol IS NULL, '',a.testcol)IS NOT NULL不起作用
- 14. SubSonic3 Linq查询生成 “IS NOT NULL”,而不是 “IS NULL”
- 15. RESTful HTTP GET not response is null iOS
- 16. “Error ... Could not load file or assembly'MySql.Data.Entity.EF5,Version = 6.9.9.0 ...”
- 17. IS NULL不工作了某些码数据类型,但IS NOT NULL作品
- 18. 查看记录IS NOT NULL在plsql中
- 19. 为什么“If Value is Nothing”抛出“Object Required(Error 424)”
- 20. Heroku pg:backups failed with“an error”
- 21. Flash Stage is Null
- 22. ReferenceError:event is not defined
- 23. Uncaught TypeError:Object#<an Object> has no method'fullCalendar'
- 24. $ stateParams is not defined
- 25. 为什么SQL语言使用IS NULL或IS NOT NULL而不是= NULL或<> NULL?
- 26. UIAccessibility -Voice over not for an NSMutableAttributedString
- 27. extjs - 'Store is undefined'
- 28. yii class is not loading
- 29. Objective C Object Not Updating
- 30. TypeError:'int'object is not iterble
需要看一些代码才能知道问题是什么 – Geronimo 2012-03-02 05:20:18
ya,这是代码 – sainath 2012-03-02 05:28:15