我想使用 sencha 创建一个面板。我尝试了以下代码。但它不起作用。
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function () {
var main = new Ext.Panel({
title: 'My first panel', //panel's title
width: 250, //panel's width
height: 300, //panel's height
//the element where the panel is going to be inserted
html: 'Nothing important just dummy text' //panel's content
});
main.render('frame');
}
});