js Blob 转 ArrayBuffer

var reader = new FileReader();
reader.onload = function() 
{
     
	var buf = new Uint8Array(this.result);
}
reader.readAsArrayBuffer(blob);

你可能感兴趣的:(前端,js,javascript)