有个项目需要获取上个月的“年-月”,用了php的这个方法:date( 'Y-m', strtotime('-1 month') )今天2020年12月31日,发现上述函数给出的结果是2020-1.
確定! 回上一頁