dutch-form.js
来自「着重用css实现页面显示功能,实现简单数据库连接,是很好的入门教程」· JavaScript 代码 · 共 76 行
JS
76 行
/*
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://www.extjs.com/license
*/
Ext.onReady(function(){ Ext.QuickTips.init(); // turn on validation errors beside the field globally Ext.form.Field.prototype.msgTarget = 'side'; var fs = new Ext.form.Form({ labelAlign: 'right', labelWidth: 95 }); fs.fieldset( {legend:'Contact Informatie'}, new Ext.form.TextField({ fieldLabel: 'Voornaam', name: 'first', width:190 }), new Ext.form.TextField({ fieldLabel: 'Achternaam', name: 'last', width:190 }), new Ext.form.TextField({ fieldLabel: 'Bedrijf', name: 'company', width:190 }), new Ext.form.TextField({ fieldLabel: 'E-mail', name: 'email', vtype:'email', width:190 }), new Ext.form.ComboBox({ fieldLabel: 'Provincie', hiddenName: 'state', store: new Ext.data.SimpleStore({ fields: ['province'], data : Ext.exampledata.dutch_provinces // from dutch-provinces.js }), displayField: 'province', typeAhead: true, mode: 'local', triggerAction: 'all', emptyText:'Kies uw provincie...', selectOnFocus:true, width:190 }), new Ext.form.DateField({ fieldLabel: 'Geboorte datum', name: 'dob', width:190, allowBlank:false }) ); fs.addButton('Opslaan'); fs.addButton('Annuleren'); fs.render('form-ct');});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?