Skip to main content

READEME

文本text

<input type="text"/>

按钮button

<input type="button"/>

单选radio

<input type="radio"/>

提示:通过e.target.checked获取当前值

复选框checkbox

<input type="checkbox"/>

提示:通过e.target.checked获取当前值

颜色color

<input type="color"/>

邮箱email

<input type="email"/>

日期date

<input type="date"/>

时间datetime-local

<input type="datetime-local"/>

周week

<input type="week"/>

月month

<input type="month"/>

文件file

<input type="file"/>

提示:连续上传同一个文件不触发 onChange 事件

图像image

<input type="image"/>

数字number

<input type="number"/>

滚轮range

<input type="range"/>

提交submit

<input type="submit"/>

电话号码tel

<input type="tel"/>