完成一个活动的执行后,我想让 jSONArray 为空或删除它。因为当我重复调用活动时,新数据会附加到 JSONArray 中存在的旧数据。我的 jsonArray 如下图所示..
[{"record":[
{......},
{.......}
]
},
{"record":[
{..........},
{.........}
]
}
]
First time:
[{"record":[{"intensity":"Low","Body_SubParts":"Scalp","symptom":"Bleeding"}]}]
Second time:
[{"record":[{"intensity":"Low","Body_SubParts":"Scalp","symptom":"Bleeding"},
{"intensity":"Low","Body_SubParts":"Eyes","symptom":"Bleeding"}]}]