javascript code to save a txt file

后端 未结 6 1149
走了就别回头了
走了就别回头了 2021-01-06 12:50

can any body tell me how i create a .txt file using javascript which is browser compatable too.

and after creating the file it gives the save as diaglog box so that

6条回答
  •  天涯浪人
    2021-01-06 13:42

    You can only do this by sending your data to a server-side language, which can write to files. Then you could send the location of the file back and redirect the user there.

提交回复
热议问题