我的代码 如下, 但显示出不是模式窗口 , 如果实现以模式窗口显示 ?? Ext.onReady(function(){
var win;
var button = Ext.get('show-btn'); button.on('click', function(){
// create the window on the first click and reuse on subsequent clicks
if(!win){
win = new Ext.Window({
applyTo : 'hello-win',
layout : 'fit',
width : 500,
height : 300,
closeAction :'hide',
plain : true,
items : new Ext.TabPanel({
applyTo : 'hello-tabs',
autoTabs : true,
activeTab : 0,
deferredRender : false,
border : false
}), buttons: [{
text : '上上上',
disabled : true
},{
text : '你在地',
handler : function(){
win.hide();
}
}]
});
}
win.show(button);
});
});
var win;
var button = Ext.get('show-btn'); button.on('click', function(){
// create the window on the first click and reuse on subsequent clicks
if(!win){
win = new Ext.Window({
applyTo : 'hello-win',
layout : 'fit',
width : 500,
height : 300,
closeAction :'hide',
plain : true,
items : new Ext.TabPanel({
applyTo : 'hello-tabs',
autoTabs : true,
activeTab : 0,
deferredRender : false,
border : false
}), buttons: [{
text : '上上上',
disabled : true
},{
text : '你在地',
handler : function(){
win.hide();
}
}]
});
}
win.show(button);
});
});
解决方案 »
- 系统alert()中断功能是如何实现的?
- 急啦,如何做如果浏览图片左右移动的效果,把多个LinkButton?
- alert不执行
- web后台监测客户端视频播放时间
- Jscript&javaScript
- 本人有一复杂的逻辑运算求解,用JAVASCRIPT写,求助!
- 网页快速添加书签
- Ext的EditorGridPanel排列方式
- window.print()方法调用时如何可以不要出现打印对话框,让其按照默认的方式打印
- SOS 怎么使用JavaScript删除脱机文档,并刷新页面???求救!!!
- Ext高手来看看 ext-all.js缺少对象,我用的是Ext2.3
- 求JavaScript权威指南第五版(中文版),谢谢
....
win = new Ext.Window({
modal : true,
....
学习中.....................
谢谢!!!!!!!!!!!!!!!!!11111