ifSubUser.getBlength = function(str){ for(var i=str.length,n=0;i--;){ n += str.charCodeAt(i) > 255 ? 2 : 1; } return n; }
js获取字符串字节的位数
猜你喜欢
转载自www.cnblogs.com/hzx-5/p/10154629.html
今日推荐
周排行