📜  获取下个月的 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:14.303000             🧑  作者: Mango

代码示例1
let Month = 11 // according to Date's 0-11 month count
const d = new Date();
// can't make this inline bcos of .setMonth 's return value
d.setMonth(Month + 1)
Month = d.getMonth();