为了账号安全,请及时绑定邮箱和手机立即绑定

react如何设置input的maxlength等属性?

react如何设置input的maxlength等属性?

慕运维8079593 2018-09-15 10:09:51
是不支持这些属性吗,还是要特殊处理,要怎样才能添加上?
查看完整描述

1 回答

?
饮歌长啸

TA贡献1951条经验 获得超3个赞

maxLength

accept acceptCharset accessKey action allowFullScreen allowTransparency alt

async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge

charSet checked cite classID className colSpan cols content contentEditable

contextMenu controls coords crossOrigin data dateTime default defer dir

disabled download draggable encType form formAction formEncType formMethod

formNoValidate formTarget frameBorder headers height hidden high href hrefLang

htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label

lang list loop low manifest marginHeight marginWidth max maxLength media

mediaGroup method min minLength multiple muted name noValidate nonce open

optimum pattern placeholder poster preload profile radioGroup readOnly rel

required reversed role rowSpan rows sandbox scope scoped scrolling seamless

selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step

style summary tabIndex target title type useMap value width wmode wrap


查看完整回答
反对 回复 2018-10-22
  • 1 回答
  • 0 关注
  • 538 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信