gpt4 book ai didi

javascript - 如何在发送 ExtJS 之前更改 JSON 对象

转载 作者:行者123 更新时间:2023-11-28 02:49:59 25 4
gpt4 key购买 nike

我每个人都有一个像这样构造的 JSON 数组

 for (var i = 0; i < count; i++) 
{
var record = myDataStore.getAt(i);

if (record.dirty){
submitRecords[currentIndex] = record.data;
//alert(submitRecords[currentIndex].ConversionDate);
currentIndex++;
}
}

问题是在 record.data 中有日期,当我尝试将其发送到我的 WCF 服务时,当然会给我一个错误,因为它没有正确的日期格式,我想知道是否有办法使用或不使用 Ext 更改 JSON 对象的特定属性

最佳答案

记录.数据.字段=值;

关于javascript - 如何在发送 ExtJS 之前更改 JSON 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4004717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com