Save text file on client machine using javascript

前端 未结 4 1546
别跟我提以往
别跟我提以往 2020-12-21 22:23

I want to create text file on client machine and then want to write in that file. And while saving that file i want to ask user where he want to save file i.e. want to ask b

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 23:00

    You cannot write back using JavaScript alone. You would have to perform a GET or POST call to be able to prompt a save. Related question Read/write to file using jQuery

提交回复
热议问题