var blob = new Blob(["你好\t\n我生成.txt文件,搞定了"], {type: "text/plain;charset=utf-8"}); saveAs(blob, "hello.txt");