简单的JavaScript函数可将JSON字符串转换为逗号分隔的项目引用列表以供显示。
另请参阅jsfiddle以获取JSON.stringify https://jsfiddle.net/ifandelse/6Yj5h/
//helper function to convert json to string
stripJsonToString: function(json)
{
return JSON.stringify(json).replace(',', ', ').replace('[', '').replace(']', '');
},
//email@email.com, example@example.com, somebody@somewhere.com