代码如下:
Ext.onReady(function() {
Ext.QuickTips.init();
var viewport = new Ext.Viewport({
layout : 'border',
items : [{
id : 'topFrame',
region : 'north',
collapsible : true,
title : '介绍',
html : 'xxxxxxxxxxxxxxxxxxxxxxxxxxx',
height : 50
}, {
id : 'menuList',
region : 'west',
split : true,
collapsible : true,
title : '菜单',
html : 'menu',
width : 120
}, {
id : 'mainContent',
region : 'center',
title : '系统说明',
collapsible : true
}]
});
var mainPanel = Ext.getCmp('mainContent');
mainPanel.load({
url : 'about.html',
scripts : true
});
});
改成
mainPanel.load({
url : '/html/info.html',
scripts : true
});
就不能加载html文件,好像是有目录就不行(但是/html/info.html文件是存在的)。