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);
精慕HU
相关分类