var aname = ["HP","攻","防","速","敏","魔","抗","智"] var sname = [ "火球", "冰冻", "雷击", "地裂", "吸血", "投毒", "连击", "会心", "瘟疫", "命轮", "狂暴", "魅惑", "加速", "减速", "诅咒", "治愈", "苏生", "净化", "铁壁", "蓄力", "聚气", "潜行", "血祭", "分身", "幻术", "防御", "守护", "反弹", "护符", "护盾", "反击", "吞噬", "亡灵", "垂死", "隐匿", "啧", "啧", "啧", "啧", "啧"] function onStart() { var tmp1 = document.getElementById("input").value.trim() var names = Array.prototype.slice.call(tmp1.split(new RegExp('\n|\\+', 'g'))); 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