日期:2014-05-16 浏览次数:20728 次
<script language="javascript"> Ext.onReady(function(){ var _panel2=new Ext.Panel({ renderTo:Ext.getBody(), title:"GuiltyGear XX", width:400, height:300, frame:true }); _panel2.addButton({text:"OK"}); _panel2.addButton(new Ext.Button({text:"Cancel", minWidth:100})); _panel2.render(Ext.getBody()); }); </script>
<script language="javascript"> Ext.onReady(function(){ var _panel2=new Ext.Panel({ /*renderTo:Ext.getBody(),*/这个不要就可以了 title:"GuiltyGear XX", width:400, height:300, frame:true }); _panel2.addButton({text:"OK"}); _panel2.addButton(new Ext.Button({text:"Cancel", minWidth:100})); _panel2.render(Ext.getBody()); }); </script> 如果页面在编码不对也会造成不能显示的问题,还有ext的js库不要导错了