📅  最后修改于: 2022-03-11 15:04:26.085000             🧑  作者: Mango
var bytes = Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
var ia = new Uint8Array(bytes);
var file = new File([ia], "hexfile.bin", {type: "application/octet-stream"});
document.location = URL.createObjectURL(file);
Run code snippet