我正在尝试修改该JSON的返回内容。
JSON.stringify
payload.SummaryOfChange = JSON.stringify(
{
modifiedBy: self.currentUser.Title,
modified: new Date().toLocaleDateString('en-GB'),
value: payload.SummaryOfChange
}
);
此函数返回
{"modifiedBy":"John Smith","modified":"1/01/2019","value":"Operational Request"}
我想实现以下结果:
Modified By: John Smith, Modified: 01/01/2019, Summary of change: Operational Request