日期:2014-05-16  浏览次数:20318 次

这个js文件哪错了啊?请各位路过的高手指点!
/*

This file is part of Ext JS 4

Copyright (c) 2011 Sencha Inc

Contact: http://www.sencha.com/contact

GNU 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',