Read/write to file using jQuery

2018-12-31 15:05发布

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

标签: jquery file
7条回答
临风纵饮
2楼-- · 2018-12-31 15:52

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.

查看更多
登录 后发表回答