var aname = ["HP","攻","防","速","敏","魔","抗","智"] function onStart() { var tmp1 = document.getElementById("input").value.trim() var names = Array.prototype.slice.call(tmp1.split('\n')); var output = document.getElementById("output") var dis = document.getElementById("dis") output.value='' var tmpsize = parseInt(document.getElementById("tmpsize").value.trim()) var x = new Array(43) var y = new Array() var name = new Name() var s = 0,tmp2=0,tmp3='' var length = names.length var Loop = setInterval(function(){ tmp3='' for(let ii=0;ii0){ // y[ptr1]=[x[i],sname[i-8]] // ptr1++ // } // } // var ytmp // for(let i=0;i