导航

2013年1月7日

摘要: 之前用纯JS编码和解码字符串,因为字符串大小为2M多,所以效率相当慢,得两三秒。之后改为了用windos api编码解码,效率一下提高,基本没有延迟的感觉。metro下的Javascript base64编码:var Base64 = { //编码 encode: function (input) { var output = ""; var buffer = Windows.Security.Cryptography.CryptographicBuffer.convertStringToBinary(input,"utf8");//字符串转缓存 out 阅读全文

posted @ 2013-01-07 18:21 曙光城邦 阅读(297) 评论(0) 推荐(0) 编辑