摘要: // 获取字符串的字节长度 function len(s) { s = String(s); return s.length + (s.match(/[^\x00-\xff]/g) || "").length;// 加上匹配到的全角字符长度 } function limit(... 阅读全文
posted @ 2014-05-21 11:15 hlp鹏 阅读(1532) 评论(0) 推荐(0) 编辑