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