示例:
<script>
var str = 'Hello, today is a nice day! ';
var str_repeat = new Array(4).join(str);
alert(str_repeat);
</script>
示例:
<script>
var str = 'Hello, today is a nice day! ';
var str_repeat = new Array(4).join(str);
alert(str_repeat);
</script>
转载于:https://my.oschina.net/syc2013/blog/367563