📅  最后修改于: 2022-03-11 14:55:11.096000             🧑  作者: Mango
const input = document.querySelector('input')
const log = document.getElementById('log')
input.addEventListener('invalid', logValue)
function logValue(e) {
log.textContent += e.target.value
}