javaScript获取前一天时间
在javascript中取date的前一天时间:
new Date(new Date()-24*60*60*1000),//取前一天的时间
转载自https://blog.csdn.net/weixin_30709635/article/details/95020868?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2-95020868-blog-7046130.pc_relevant_aa&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-2-95020868-blog-7046130.pc_relevant_aa&utm_relevant_index=5