el-input长度
时间: 2023-10-08 19:04:49 浏览: 193
根据引用中的代码和描述,el-input的长度限制是100个字节数。其中,一个英文字符占一个字节,一个中文字符占两个字节,一个数字也占一个字节。在该代码中,通过计算输入字符串的字节数来进行长度限制。如果输入的字符串长度超过了100个字节,则会截取多余的字符,保留之前的限制内的字符长度。
所以,el-input的长度限制是100个字节数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-input 输入框长度的限制问题](https://blog.csdn.net/cm159177/article/details/118894433)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [vue input 输入校验字母数字组合且长度小于30的实现代码](https://download.csdn.net/download/weixin_38518885/12957048)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [el-input长度的设置](https://blog.csdn.net/weixin_39249427/article/details/104901733)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文