extjs打开window关于autoLoad中url的问题

2025-05-13 09:37:18
推荐回答(2个)
回答(1):

function changeself(u,width,height){
if(typeof(width)!='number') {
width=300;//判断传递过来的参数是不是数字类型,如果不是默认宽度300
}
if(typeof(height)!='number') {
width=400;//判断传递过来的参数是不是数字类型,如果不是默认高度300
}

var win=new Ext.Window({
title:"窗口",
width:width,
height:height,
modal:true,
autoLoad:{
url:u,//这里我想用传的url参数u
scripts:true
}
});
win.show();
}

url传过来应该行哟,这是ext3的写法,看不太懂

回答(2):

龙爷求送分