Date function not working in IE8

前端 未结 2 1442
粉色の甜心
粉色の甜心 2020-12-21 17:51

I\'ve got the following which works fine in Chrome:

function funLoad(str1,str3,str4)
{

    var dym1 = str1.split(\"/\");

    var d=new Date();
    var dym2         


        
2条回答
  •  梦毁少年i
    2020-12-21 18:22

    Looks like that format is not supported in IE

    var dym2 = d.getMonth() + 1 + "-" + d.getDate() + "-" + d.getFullYear() + " " + d.getHours() + ":" + d.getMinutes() + ":00";
    

提交回复
热议问题