react / javascript / typescript

js: 获取form中input的值
const username = e.currentTarget.elements[0].value
ts: 获取form中input的值
const username = (e.currentTarget.elements[0] as HTMLInputElement).value

你可能感兴趣的:(react / javascript / typescript)