我在向Parse查询结果集设置其他字段时遇到问题。下面是一个示例代码。提前谢谢!
当我从服务器端函数的查询中获取结果集时,我尝试运行以下不能按预期工作的代码。
querySubscribes.find(
{
success:function(subscribes)
{
for(var i = 0, len = subscribes.length; i < len;i++ ){
subscribes[i]['test'] = 1; // this doesn't work. seems like this object is kind of immutable!
}
response.success(subscribes);
},
error: function(err){
response.error(err);
}
});