Ê×Ò³ Ê«´Ê ×Öµä °å±¨ ¾ä×Ó ÃûÑÔ ÓÑ´ð ÀøÖ¾ ѧУ ÍøÕ¾µØͼ
µ±Ç°Î»ÖÃ: Ê×Ò³ > ½Ì³ÌƵµÀ > ÍøÕ¾¿ª·¢ > WebÇ°¶Ë >

EXTѧϰ֮·-չʾºÍÒþ²ØÃæ°å

2012-10-28 
EXTѧϰ֮·----ÏÔʾºÍÒþ²ØÃæ°åfunction createPanel(){var panel new Ext.Panel({id : winPanel,titl

EXTѧϰ֮·----ÏÔʾºÍÒþ²ØÃæ°å
function createPanel()
{
    var panel = new Ext.Panel({
        id : 'winPanel',
        title:'äÖȾ´°¿ÚÃæ°å',
        width:400, 
        height:400,
        renderTo:'panelDiv',//renderToÊǽ«Ä¿±êÔªËØ×÷ΪÐÂ×é¼þµÄÈÝÆ÷
        //applyTo:'panelDiv', //applyToÊÇÔÚÄ¿±êÔªËØÖ®ºó×·¼Ó×é¼þ
        html:'<span>this is a panel</span>'
    });
    //panel.render("panelDiv"); //äÖȾIDΪpanelDivµÄÈÝÆ÷
}

function showPanel()
{
    var panel = Ext.ComponentMgr.get('winPanel');
    panel.show();
}
function hiddenPanel()
{
     var panel = Ext.getCmp('winPanel');//Ext.ComponentMgr.get('winPanel')µÄËõд
     panel.hide()
}

ÈȵãÅÅÐÐ