随笔分类 -  js时间日期类

摘要:var date = new Date() console.log(date.getDate()); // 一个月里的第几天 console.log(date.getFullYear()); // 年 console.log(date.getMonth()+1); // 月 console.log( 阅读全文

posted @ 2020-07-02 14:54 猫头唔食鱼 阅读(372) 评论(0) 推荐(0) 编辑

摘要:+new Date() new Date().valueOf() 这两个方法作用是一样的,得到一串时间戳 阅读全文

posted @ 2020-07-02 11:02 猫头唔食鱼 阅读(349) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示