批量生成ts文件

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>

<body>
    <script>

    //  把多个ts文件合并成一个文件	
    // 	copy /b  F:\f\*.ts  E:\f\new.ts
    //  cmd /k
    // 	
    // 	批量生成ts文件
    var str = '';

	var urlArr=[
		'https://xxxx/1.ts',
		'https://xxxx/2.ts',
		'https://xxxx/3.ts'
	]
	urlArr.forEach(function(item,index){
		for (var i = 0; i < 100; i++) {
			if (i < 10) {
				str = '00000' + i;
				document.write(item + str + ".ts" + "<br class='dddd' />")
			} else if (i < 100) {
				str = '0000' + i;
				document.write(item + str + ".ts" + "<br class='dddd' />")
			} else if (i < 1000) {
				str = '000' + i;
				document.write(item + str + ".ts" + "<br class='dddd' />")
			};
		}
	})

    </script>
</body>

</html>