📜  如何在 javascript 代码示例中创建十六进制编码文件

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

代码示例1
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