toString()


此方法返回表示指定对象的字符串。

语法

string.toString()

返回值

返回表示指定对象的字符串。

var str = "Apples are round, and Apples are Juicy.";
console.log(str.toString( ));

输出

Apples are round, and Apples are Juicy.