JS文件:
//1:表单数据异步提交
Ext.onReady(function(){
Ext.QuickTips.init();
var loginForm=Ext.create('Ext.form.Panel',{
title:'表单提交示例',
width:230,
frame:true,
fieldDefaults:{
labelSeparator:':',
labelWidth:50,
msgTarget:'side',
width:200
},
renderTo:Ext.getBody(),
bodyPadding:5,
defaultType:'textfield',
items:[{
fieldLabel:'用户名',
name:'userName',
allowBlank:false,
vtype:'email'
},{
fieldLabel:'密码',
name:'password',
inputType:'password',
allowBlank:false
}],
buttons:[{
text:'登录',
handler:login
},{
text:'重置',
ha