Sencha touch Sencha Formfields传递空字段
我正在学习Sencha Touch。我以前用一个表单创建了这个应用程序,效果很好 现在我正在开发一个新的小测试应用程序,我从另一个应用程序复制代码,它只将空变量传递给webservice 观点:Sencha touch Sencha Formfields传递空字段,sencha-touch,extjs,sencha-touch-2,Sencha Touch,Extjs,Sencha Touch 2,我正在学习Sencha Touch。我以前用一个表单创建了这个应用程序,效果很好 现在我正在开发一个新的小测试应用程序,我从另一个应用程序复制代码,它只将空变量传递给webservice 观点: <!-- language: lang-js --> Ext.define('Gasoline.view.InsertTankTrip', { requires: [ 'Ext.form.FieldSet' ], extend: 'Ext.form.Panel', xtyp
<!-- language: lang-js -->
Ext.define('Gasoline.view.InsertTankTrip', {
requires: [
'Ext.form.FieldSet'
],
extend: 'Ext.form.Panel',
xtype: 'inserttankpanel',
id: 'insertTankForm',
config: {
title: 'Insert Tank Trip',
iconCls: 'add',
url: 'contact.php',
items:[
{
xtype: 'fieldset',
title: 'Insert Tank Trip',
instructions: '(Make sure the info is correct!)',
items:[
{
xtype: 'datepickerfield',
label: 'Date',
name: 'date',
value: new Date()
},
{
xtype: 'textfield',
label: 'Amount',
name: 'amount',
minValue:-9007199254740992,
maxValue: 9007199254740992
}
]
},{
xtype: 'button',
text: 'Send',
ui: 'confirm',
action: 'insertTankSubmit'
}
]
}
});
这会将以下内容发送到webservice(目前不存在,我只是使用开发人员工具检查)
日期:2012-07-26T17:02:16
金额:
所以日期会被发送,号码不会
如果我为数字填写一个标准值。。。它会被发送,但如果您键入了某些内容,它仍然不会发送使用的内容
xtype: 'numberfield'
而不是
xtype: 'textfield'
我尝试过许多解决方案……但都不奏效 最后我删除了一切。。。用完全相同的方式编码,然后开始工作
xtype: 'textfield'