-1
我想从一个aspx页面中的javacript写入一个文件,并且出现错误。这是我的代码和错误。fopen错误,null属性
var fh = fopen("c:\temp\MyFile.txt", 3); // Open the file for writing
if (fh != -1) // If the file has been successfully opened
{
fwrite(fh, saveData); // Write the string to a file
fclose(fh); // Close the file
}
属性'fopen'的值为空或未定义,而不是函数对象。
任何帮助?
JavaScript中是否存在fopen? – 2012-07-19 08:57:05