使用 JSON.stringify() 将对象转换为字符串
JavaScript
{"name":"Jack","age":27}
string
使用 String() 将对象转换为字符串
JavaScript
[object Object] Jack string
We have been online since 2021 and 1 millions of people around the globe have visited our website since then
More visitors every month