摘要: /** * @return {number} */ getRealLength = function(str) { var realLength = 0, len = str.length, charCode = -1; for (var i = 0; i = 0 && charCode <= 128) realLength += 1; else realLength += 2; } return realLength... 阅读全文
posted @ 2013-11-14 09:40 Duelsol 阅读(457) 评论(0) 推荐(0) 编辑