【发布时间】:2014-05-26 07:25:54
【问题描述】:
我有一个名为 Blob() 的字符串:
var mystring = "Hello World!";
var myblob = new Blob([mystring], {
type: 'text/plain'
});
mystring = "";
如何将字符串取出?
function getBlobData(blob) {
// Not sure what code to put here
}
alert(getBlobData(myblob)); // should alert "Hello World!"
【问题讨论】:
标签: javascript html blob