0
我怎样才能改变这种转换JSON字符串中添加父
return {
businessSummary: d[0].GeneralInformation.BusinessSummary,
businessUrl: d[0].GeneralInformation.WebSites.HomePage
};
显示输出,就是这个样子。只是想在上面
添加父数据节点目前它这样
我怎样才能改变这种转换JSON字符串中添加父
return {
businessSummary: d[0].GeneralInformation.BusinessSummary,
businessUrl: d[0].GeneralInformation.WebSites.HomePage
};
显示输出,就是这个样子。只是想在上面
添加父数据节点目前它这样
你是在与特性返回一个对象businessSummary和businessUrl此时此刻。你想要做的是返回一个对象,其属性数据其中包含与您的其他属性的对象。像这样:
return { data: {
businessSummary: d[0].GeneralInformation.BusinessSummary,
businessUrl: d[0].GeneralInformation.WebSites.HomePage
}};