JavaScript 获取月份天数函数 - getTHREE()
function getTWO(year , yve ){ var r = yve; return r; } function getTHREE(years , yve){ document.write(year+"年") if (yve == 2){ document.write(yve+"月有28天") }else if(yve == 4 || 6 || 9 || 10){ document.write(yve+"月有30天") }else{ document.write(yve+"月有31天") } } getTHREE(2021 , 6)
AI 优化版
原文地址:https://www.cveoy.top/t/topic/mTy7 著作权归作者所有。请勿转载和采集!