在blob对象中读取文字内容
var blob = new Blob(["你好"], {
type: 'application/-excel'
})
//通过FileReader读取数据
var reader = new FileReader();
//以下这两种方式我都可以解析出来,因为Blob对象的数据可以按文本或二进制的格式进行读取
//(blob);
reader.readAsText(blob, 'utf8');
reader.onload = function() {
var content = this.result; //这个就是解析出来的数据
console.log(content )
}