-1

aspx ページで javacript からファイルに書き込もうとすると、エラーが発生します。これが私のコードとエラーです。

   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' の値が null または未定義であり、Function オブジェクトではありません。

何か助けはありますか?

4

1 に答える 1

2

fopen は JavaScript 関数ではありません。

于 2012-07-19T08:59:42.670 に答える