<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<div id="show">
</div>
</body>
<script>
var num = 1
setInterval(function() {
var len = 3//显示的长度
num = parseInt(num, 10) + 1
num = num.toString()
while(num.length < len) {
num = '0' + num
}
document.getElementById('show').innerHTML = num
}, 10)
</script>
</html>
var ifor(i=0i<10000i++){
console.log('CK'+'1804'+("0000" + i).substr(-4))
}