두 라인이 서로 다른 출력을 제공하는 이유 출력console.log와 document.write가 동일한 코드에 대해 다른 출력을주는 이유는 무엇입니까? 다음
var myArray = ["one", "two","three", "four"];
var arr = [myArray];
console.log(arr); //ouput - [Array[4]]
window.document.write(arr); //ouput - one,two,three,four
와 코드인가? 미리 감사드립니다.
'에 대한은 Array.toString()를 사용할 수 있습니다. –
적어도 물어보기 전에 Google에서 검색 한 것처럼 보이게 할 수 있습니다. – RDardelet