Ext.BLANK_IMAGE_URL = '../../TruckMng/Content/Images/s.gif'; var panelIndex = null; Ext.onReady(function () { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; panelIndex = Ext.create('DsTruck.MsWlCkIndex', { layout: 'border', region: 'center' }); var view = new Ext.Viewport({ layout: 'border', renderTo: 'viewport', border: false, items: [{ region: 'center', layout: 'fit', items: [panelIndex] }] }); }); function OprationSwap() { return panelIndex.OprationSwap(); }