亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

react如何設置input的maxlength等屬性?

react如何設置input的maxlength等屬性?

寶慕林4294392 2018-08-08 10:08:50
是不支持這些屬性嗎,還是要特殊處理,要怎樣才能添加上?
查看完整描述

2 回答

?
回首憶惘然

TA貢獻1847條經驗 獲得超11個贊

大寫L

<input type = "text" maxLength = "4" />


查看完整回答
反對 回復 2018-08-30
?
holdtom

TA貢獻1805條經驗 獲得超10個贊

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-08-30
  • 2 回答
  • 0 關注
  • 2629 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號