题解 | #输出日期#

输出日期

https://www.nowcoder.com/practice/3b7aa5e0792b42338bf5dd2b8ee54d70

{"html":"<!-- 请在此处编写你的代码 -->\\n<!-- <div id=\"app\"> Hello Nowcoder </div> -->","css":"/* html, body {\\n\\twidth: 100%;\\n\\theight: 100%;\\n\\tmargin: 0;\\n\\tpadding: 0;\\n} */","js":"function _date(number) {\r\n    // 补全代码\r\n    let date = new Date(number)\r\n    return date.getFullYear() + \"-\" + (date.getMonth()+1) + \"-\" + date.getDate()\r\n}"}

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务