Setting the value of date inputs on iPad

后端 未结 2 847
北恋
北恋 2021-01-04 13:51

WEB APP not native, no Objective-C

This is so simple it hurts.

  

Done to use the iPa

2条回答
  •  迷失自我
    2021-01-04 14:09

    for iOS6 the ISO format "YYYY-MM-DDTHH:mm:ss.sssZ" is required:

    var now = new Date().toISOString();
    $("input[type=datetime]").val(now);
    

提交回复
热议问题