<html>
<body>
<script>
var a=["aa","bb","cc"];
document.write(a[0]+a[1]+a[2]+"<br>"); // aabbcc
document.write(a.join("&")+"<br>");
</script>
</body>
</html>
'개발하자 > 자바스크립트' 카테고리의 다른 글
sort (0) | 2015.02.24 |
---|---|
buffer.join(""); (0) | 2015.02.24 |
concat (0) | 2015.02.24 |
Math.ceil(Math.random() * 5); (0) | 2015.02.24 |
객체생성하는방법1 (0) | 2015.02.24 |