Extjs的一些问题 例如,有一个父界面A.html;一个子界面B.html;如何用Extjs在A.html点添加,弹出B.html子页面。 new Ext.window() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window里面加属性 autoLoad:{url:'B.html',scope:this} var maywin;button.on('click', function(){ // create the window on the first click and reuse on subsequent clicks if(!mywin){ mywin = new Ext.Window({ layout: 'fit', title: 'GMap Window', closeAction: 'hide', width:400, height:400, x: 40, y: 60, items: { xtype: 'panel', html: '<iframe width=100% height=100% src=b.html>' } }); } mywin.show(); }); A.html中的添加按钮添加一个事件,window.open('b.html');b.html添加Ext.onReady函数,new Window即可 我试了下,这样写会如果设置的长度太长,头部会被被frame主框架给掩盖掉的 jquery天猫商城左侧导航,鼠标移到相应分类,右侧的弹出层随左侧分类而调整位置 用split分隔check_id时为什么开始时为逗号? <a>中加void后,为什么页面上就只有一个1了? 请问有什么好的js解密工具? <input file 能否指定默认文件打开路径? setTimeout的时间有上限吗? //怎样插入一个字符到NameText,要能启动NameText的onkeyup事件。<br> 怎么实现滚动 求救:如何將數據庫表中的圖版動態顯示出來放在網頁上 jQuery ui 和divde overflow冲突 一个脚本的技术难题 ,请高手来解答 jquery treeGrid
autoLoad:{url:'B.html',scope:this}
button.on('click', function(){
// create the window on the first click and reuse on subsequent clicks
if(!mywin){ mywin = new Ext.Window({
layout: 'fit',
title: 'GMap Window',
closeAction: 'hide',
width:400,
height:400,
x: 40,
y: 60,
items: {
xtype: 'panel',
html: '<iframe width=100% height=100% src=b.html>'
}
});
}
mywin.show();
});
A.html中的添加按钮添加一个事件,window.open('b.html');
b.html添加Ext.onReady函数,new Window即可