search

Home  >  Q&A  >  body text

How to submit a form that needs to receive data and save it to a certain path

How to implement this submission form, the saving path is fine, as long as the data can be saved, it can also be saved in a database, and you don’t need to design it into the backend, just use the front end to implement this function. This is a question worth thinking about! If anyone knows how to write it, please add me at 2547196547 and tell me. I really don’t know! Thank you!

2113 days ago1436

reply all(1)I'll reply

  • 刘某

    刘某2019-04-22 13:08:59

    Try the FileSaver.js plug-in,

    var downloadTextFile = function(content) {
      var file = new File([content], "demo.txt", { type: "text/plain;charset=utf-8" });
      saveAs(file); 
    }

    It can meet your needs

    reply
    0
  • Cancelreply