转换方法

{
  let color = ['red','blue','green'];
  console.info(color.toString());
  console.log(color.valueOf());
  console.log(color);
}

通过试验可以看到

results matching ""

    No results matching ""