如何将对象转换为字符串 [英] How to convert object into string

查看:58
本文介绍了如何将对象转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Angular的$ scope中具有此值

i have this value in $scope in Angular

$scope.tags = [
            { text: 'test@test.com' },
            { text: 'test1@test.com' },
            { text: 'test2@test.com' },
            { text: 'test3@test.com' }
          ];

我想要这个结果

test @ test.com,test1 @ test.com,test2 @ test.com,test3 @ test.com 我正在尝试发送多封电子邮件

test@test.com,test1@test.com,test2@test.com, test3@test.com I am trying to send an multiple email

我是否需要运行循环,或者还有其他方法可以执行此操作.

Do i need to run loop, or is there is any other way to do this .

谢谢

推荐答案

您可以使用 示例

这篇关于如何将对象转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆