📌  相关文章
📜  在输入日期中添加日期 javascript dd mm yyyy - Javascript 代码示例

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

代码示例1
defaultInputDate() {
    var now = new Date();
    var day = ("0" + now.getDate()).slice(-2);
    var month = ("0" + (now.getMonth() + 1)).slice(-2);
    var today = now.getFullYear() + "-" + month + "-" + day;
    return today;
  }