0
開發應用程序時出現奇怪的錯誤。每當我向它添加按鈕時,工具欄消失。代碼如下:Extjs工具欄崩潰,extjs 4.2.1,Chrome,Windows
Ext.create('Ext.toolbar.Toolbar', {
renderTo: document.body,
width : window,
height: window,
items: [
{
xtype : 'textfield',
name : 'field1',
emptyText: 'enter search term'
},
'-',
{
xtype : 'button'
// icon: 'img/cross_cursor.gif'}
}
]})
沒有錯誤遇到