如何在Javascript中使import csv
with open("hisEasyR.txt", "a") as hisEasyRFile:
writer = csv.writer(hisEasyRFile, delimiter='|')
writer.writerows(results)
不可变的内容? |
方法似乎不起作用。有没有办法实现呢?它会成为可能吗?
答案 0 :(得分:1)
您可以将ArrayBuffer
转换为使用data URI
定义的const
不可变字符串
const reader = new FileReader;
reader.onload = () => { const ab = reader.result // `ab` cannot be changed }
reader.readAsDataURL(new ArrayBuffer(123));
请参阅Is it possible to delete a variable declared using const??