首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

这个js文件哪错了啊请各位路过的

2012-08-17 
这个js文件哪错了啊?请各位路过的高手指点!/*This file is part of Ext JS 4Copyright (c) 2011 Sencha In

这个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',
  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();
});

[解决办法]
firebug下看看什么错误提示
[解决办法]
where is el?
[解决办法]
json 路过

热点排行