HTML
<input type="datetime-local" onblur="window.setValue(this.value)" />
JS
window.setValue = function (val) {
console.log(val);
}
The output above is 1991-03-02T00:01
, how to get the exact value? Like 03/02/1991 12:01 AM
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…