摘要: 1. 输入文本框,超过最大字节数,自动删除 function removeExtraBytes(text, maxByteLength) { // const maxByteLength = 10; // 设置最大字节长度为10 let byteCount = 0; for (let i = 0; 阅读全文
posted @ 2024-01-05 11:22 front-gl 阅读(148) 评论(0) 推荐(0) 编辑