通过Javascript在Safari中下载文件,而不使用window.open

时间:2016-02-29 12:39:30

标签: javascript download safari

Html5下载属性在Safari上无效。

我正在使用此answer,但由于 $content = $_POST['email']; $myfile = fopen("".$name.".txt", "w") or die("error"); // make txt file fwrite($myfile, $content); // write some content fclose($myfile); // save and close 已在我的网页上修补,因此对我无效。

如果我想下载文件,还有哪些其他选项?

0 个答案:

没有答案