刚学习extjs,将ext API中的examples中的代码打打练练手。写的form代码如下:
/*This file is part of Ext JS 4Copyright (c) 2011 Sencha IncContact:  http://www.sencha.com/contactGNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.*/
Ext.require([
             'Ext.grid.*',
             'Ext.data.*',
             'Ext.util.*',
             'Ext.form.*',
             'Ext.grid.PagingScroller',     
             'Ext.toolbar.Paging',
             'Ext.ModelManager',
             'Ext.tip.QuickTipManager',           
             'Ext.selection.CheckboxModel',
             'Ext.window.MessageBox',
             'Ext.window.*'
]);
Ext.onReady(function(){
Ext.QuickTips.init();
var addForm=Ext.create('Ext.form.Panel',{
bodyPadding: 5,
        width: 600,
        renderTo:'add',
        border: false,
        frame: true,
      items:[{
       xtype: 'fieldset',
          title: '',
          defaultType: 'textfield',
          labelAlign: 'right',
          defaults: {
              anchor: '100%'
          },
         items:[{
          xtype: 'textfield',
             name: 'xb',
             fieldLabel: '项目编号',
             labelStyle: 'font-weight:bold',
             allowBlank: true  
         },{
          xtype: 'datefield',
             name: 'hd',
             fieldLabel: '活动时间*(yyy-mm-dd)',
             labelStyle: 'font-weight:bold',
             allowBlank: true 
         },{
          xtype:          'combo',
             mode:           'local',                       
             value:          '参与人',
             triggerAction:  'all',
             forceSelection: true,
             editable:       false,
             fieldLabel:     '主要参与人*',
             labelStyle: 'font-weight:bold',
             name:           'zycyr',
             displayField:   'name',
             valueField:     'value',
             queryMode: 'local',
             store:          Ext.create('Ext.data.Store', {
                 fields : ['name', 'value'],
                 data   : [
                     {name : '张三',   value: '张三'},
                     {name : '张三',  value: '张三'},
                     {name : '张三', value: '张三'},
                     {name : '张三', value: '张三'}
                     
                     ]
                 })  
         },{
         xtype:          'combo',
                mode:           'local',                       
                value:          '参与人',
                triggerAction:  'all',
                forceSelection: true,
                editable:       false,
                fieldLabel:     '其他参与人*',
                labelStyle: 'font-weight:bold',
                name:           'qtcyr',
                displayField:   'name',
                valueField:     'value',
                queryMode: 'local',
                store:          Ext.create('Ext.data.Store', {
                    fields : ['name', 'value'],
                    data   : [
                        {name : '李四',   value: '李四'},
                        {name : '李四',  value: '李四'},
                        {name : '李四', value: '李四'},
                        {name : '李四', value: '李四'}
                        
                        ]
                    })    
         },{
          xtype: 'textfield',
             name: 'xj',
             fieldLabel: '项目进展*',
            emptyText:'请选择一个或多个其他参与者',
             labelStyle: 'font-weight:bold',
                allowBlank: true
         },{
          xtype: 'textfield',
             name: 'bz',
             fieldLabel: '备注',
             labelStyle: 'font-weight:bold',
             allowBlank: true 
         }]
      }]
});
var win = Ext.create('Ext.window.Window',{
 title: '添加日报(带*号为必填项)',
 width: 600,
 hidden: false,
 layout: 'fit',
 plain: true,
 closable: true,
 closeAction: 'hide',
 items: addForm
 }); 
 win.show();
});
总是出现ext-all-debug.js中el isnull而中断调试?怎么办啊?急!