可能没说清楚,上代码
function Viewport() {
var viewport = Ext.create("Ext.container.Viewport", {
layout: {
type: 'border',
padding: '5',
},
items: [{
region: 'north',
height: 50,
border: false,
margin: '0,0,0,0',
bodyStyle: {
background: '#3992D4'
},
html: 'welcome!!!'
..........
最后一行的html,我想显示我写好的页面,如何做?
items: { title: '首页', //html: 'Welcome!', id: 'userPanel', autoLoad:{ params: {'userid':'123'}, url:'Welcome.jsp', scripts:true } }