Read/write to file using jQuery

后端 未结 7 1052
迷失自我
迷失自我 2020-11-22 13:29

Is there a way to get jQuery to get information to and from a file? Is it possible? How?

相关标签:
7条回答
  • 2020-11-22 13:59

    Cookies are your best bet. Look for the jquery cookie plugin.

    Cookies are designed for this sort of situation -- you want to keep some information about this client on client side. Just be aware that cookies are passed back and forth on every web request so you can't store large amounts of data in there. But just a simple answer to a question should be fine.

    0 讨论(0)
提交回复
热议问题