限制input內容長度

使用maxlength屬性code

一個字母和一箇中文字都計做 1input

<input type="text" name="UserName" maxlength="20"/>
相關文章
相關標籤/搜索