摘要: 1 function utf8(){ 2 3 } 4 5 utf8.prototype.encode=function(text) 6 { 7 var result = ""; 8 for (var n = 0; n < text.length; n++) 9 { 10 var c = text.charCodeAt(n); 11 if (c < 128) 12 { 13 result += String.fromCharCode(c); 14 } 15 ... 阅读全文
posted @ 2012-08-03 20:22 黄龙 阅读(1986) 评论(0) 推荐(0) 编辑