此方法返回表示指定对象的字符串。
toString() - 语法
string.toString()
toString() - 返回值
返回表示指定对象的字符串。
toString() - 示例
var str="Apples are round, and Apples are Juicy."; console.log(str.toString( ));
运行上面代码输出
Apples are round, and Apples are Juicy.
参考链接
https://www.learnfk.com/es6/es6-methods-tostring.html
标签:es6,教程,Juicy,无涯,toString,Apples,str,round From: https://blog.51cto.com/u_14033984/9555142