自写程序else if
var myage =99;//赵红的年龄为99 if(myage<=44) {document.write("青年");} else if(myage<=59) {document.write("中年人");} ? (myage<=89) {document.write("老年人");} ? {document.write("长寿老年人");}
var myage =99;//赵红的年龄为99 if(myage<=44) {document.write("青年");} else if(myage<=59) {document.write("中年人");} ? (myage<=89) {document.write("老年人");} ? {document.write("长寿老年人");}
2017-07-03
举报