var viewprot = new Ext.Viewport({
layout:'tdgi_border', //扩写的布局 在收缩的时候能显示title
items:[/*{
region:'north',//位于北边
title:'医院住院病人查询',
collapsible:true,//是否可以最小
collapsedTitle: true, // 扩写的 在收缩的时候显示title
height:125,
html:'<iframe name="qfrm" frameborder="0" width=100% height=100% src="/statisticsAynalysis.do?method=accedQryPage&action=patientQry" noresize scrolling="auto">'
},
{
region:'center',//位于北边
split:true,//是否可以缩放
minSize:50,//最小只能拖到50
maxSize:170,//最大170
border:false//,
//html:'<iframe name="mfrm" frameborder="0" width=100% height=100% src="/statisticsAynalysis.do?method=patientInfo&action=init" noresize scrolling="no"></iframe>'
}*/,new InpatientFormPanel(),new InpatientViewPanel()]
});
});其实这样的错误太多了,大多数是语法错误,上面的错误就是多了一个逗号!a is undefined extjs
最新推荐文章于 2022-03-01 13:44:06 发布
本文介绍了一个关于ExtJS布局配置中的常见错误案例,该错误源于多余的逗号导致的语法问题。通过对具体代码片段的分析,展示了如何正确配置Viewport布局及其内部组件。
1万+

被折叠的 条评论
为什么被折叠?



