📜  js 字符串到 blob - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:15.627000             🧑  作者: Mango

代码示例2
In order to extract data from a Blob, you need a FileReader.

var reader = new FileReader();
reader.onload = function() {
    alert(reader.result);
}
reader.readAsText(blob);