Commit 6dc8f3c1 by 宋祥

1.图片放大预览,文件数据编码调整

parent 4dd7bc24
...@@ -98,9 +98,9 @@ function previewText(docId) { ...@@ -98,9 +98,9 @@ function previewText(docId) {
// 使用new TextDecoder()指定编码 // 使用new TextDecoder()指定编码
// let textDecoder; // let textDecoder;
// try { // try {
// textDecoder = new TextDecoder('UTF-8', {ignoreBOM: true});
// } catch (e) {
// textDecoder = new TextDecoder('GBK', {ignoreBOM: true}); // textDecoder = new TextDecoder('GBK', {ignoreBOM: true});
// } catch (e) {
// textDecoder = new TextDecoder('UTF-8', {ignoreBOM: true});
// } // }
// let dataDecoder = textDecoder.decode(data); // let dataDecoder = textDecoder.decode(data);
$("#textSpan").text(data); $("#textSpan").text(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment