题解 | #返回星期数#
返回星期数
http://www.nowcoder.com/practice/e0977412539049928778363f59fbb3c3
function _getday(value) {
// 补全代码\n
let arr = ['天', '一', '二', '三', '四', '五', '六']
return `星期${arr[value % 7]}`
}
返回星期数
http://www.nowcoder.com/practice/e0977412539049928778363f59fbb3c3
function _getday(value) {
// 补全代码\n
let arr = ['天', '一', '二', '三', '四', '五', '六']
return `星期${arr[value % 7]}`
}
相关推荐