Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String ExtJs 3.4 numberfield发送字符串而不是null_String_Extjs_Null - Fatal编程技术网

String ExtJs 3.4 numberfield发送字符串而不是null

String ExtJs 3.4 numberfield发送字符串而不是null,string,extjs,null,String,Extjs,Null,我有一个表单,可以用来修改JsonStore的记录。 这是JsonStore的配置: reader: new Ext.data.JsonReader({ fields: [ 'item_ref', 'item_type_code', { name:'order_by', type: 'int' }] }),[ ... ] 我试图修改order_by字段(numberfie

我有一个表单,可以用来修改JsonStore的记录。 这是JsonStore的配置:

reader: new Ext.data.JsonReader({
fields: [
    'item_ref',
    'item_type_code',
    {
        name:'order_by',                
        type: 'int'            
    }]
}),[ ... ]  
我试图修改order_by字段(numberfield),但如果将其留空,它将发送一个字符串“”。。。 我认为json的order_by字段为空,如下所示:

{
    item_ref: 16
    item_type_code: 1
    order_by:  
}
但我明白了:

{
    item_ref: 16
    item_type_code: 1
    order_by:  ""
}

在这里演奏的是作者,不是读者。没错。但我没有找到任何合适的配置。我试图强制输入:“json”。。。但一切都没有改变。