js获取提交的字符串的字节数 方法1:复制代码 代码如下:function getBytesCount(str) { var bytesCount = 0; if (str != null) { JavaScript 2022-04-08 230 点赞 3 评论 348 浏览