js: 获取form中input的值
const username = e.currentTarget.elements[0].value
ts: 获取form中input的值
const username = (e.currentTarget.elements[0] as HTMLInputElement).value
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
本文链接:https://www.haomeiwen.com/subject/dgrmfltx.html
网友评论