toolbar
href="../ext-3.0.3/resources/css/ext-all.css" />
Ext.onReady(function(){
var tb = new Ext.Toolbar();
tb.render('toolbar');
// 为工具条添加4个按钮
tb.add({
text: '新建',
handler: function() {
Ext.Msg.alert('提示', '新建');
}
},{
text: '修改',
handler: function() {
Ext.Msg.alert('提示', '修改');
}
},{
text: '删除',
handler: function() {
Ext.Msg.alert('提示', '删除');
}
},{
text: '显示',
handler: function() {
Ext.Msg.alert('提示', '新建');
}
});
});
帮忙解决一下?谢了!