关于ExtJS错误“例外被抛出且未被接
最近在行使ExtJS搭建网页界面进程中报堕落误动静,IE中的提醒如下: 破例被抛出且未被接住,行19。。。。 Firefox提醒如下: uncaught exception: No center region defined in BorderLayout westpanel. 按照IE的错误信息调试了老半天也没找到哪的短处,原来就没几多的JS代码,硬是不知道题目出在哪。看了Firefox的提醒才大白,意思就是说在layout为border的westpanel中没有界说center region。防备这样的报错就得把layout为border删了可能添加center region,显然假如这个panel没有子panel(items)的话完全没须要设成border layout。查了下ExtJS3.1.1 API documentation,关于border layout的提醒有: 1.Any container using the BorderLayout must have a child item with region:’center’. The child item in the center region will always be resized to fill the remaining space not used by the other regions in the layout. 2.Any child items with a region of west or east must have width defined (an integer representing the number of pixels that the region should take up). 3.Any child items with a region of north or south must have height defined. 原本已经说得很清晰了,只是用得时辰没留意啊。 往后调试照旧得多用Firefox的Firebug了。 (编辑:河北网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |