📄 sample.js
字号:
Ext.QuickTips.init();
Ext.onReady(function(){
var win = new Ext.Window({
width:400,
height:300,
title:"我的电脑",
tools:[{
id:"toggle",
handler:function(e,t,p){
},
qtip:"hi, this is my computer!"
}],
tbar:[{
text:"hhhh",pressed:true
},new Ext.Toolbar.TextItem("hello"),
new Ext.Toolbar.Spacer(),
new Ext.Toolbar.Button({text:"button"})],
bbar:[
new Ext.Toolbar.TextItem("hello"),
new Ext.Toolbar.Spacer(),
new Ext.Toolbar.Button({text:"button"})]
});
win.show();
win.getTopToolbar().add({text:"hhhh",pressed:true});
win.getTopToolbar().add(new Ext.Toolbar.Separator());
win.getTopToolbar().add(new Ext.Toolbar.Button({text:"button"}),new Ext.Toolbar.Spacer(),new Ext.Toolbar.Button({text:"button"}));
var menu = new Ext.menu.Menu({
items:[{
text:"first"
},"-",{
text:"second"
}]
});
win.getTopToolbar().add(new Ext.Toolbar.SplitButton({
text:"splitButton",
menu:menu
}));
})
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -