var pay = new Array(); document.write(pay.length); var i = 0; do{ var payNum = prompt("请输入员工工资"); if(payNum == "退出"){ break; } pay[i] = payNum; i++; }while(payNum != "退出"); document.write(pay);
添加回答
举报
0/150
提交
取消