Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 PHP,我有一个表单,其中包含一个简单的项目列表,每个项目都有一个复选框。我的问题是该列表必须分页,并且随着用户来回翻页,复选框需要保持粘性。我是否需要使用 ajax 并为每个复选框单击更新会话变量,还是使用 cookie 是一种更好的方法?
实现这一目标的最佳方法是什么?
谢谢,布赖恩
回答我自己的问题,因为似乎没有人对这个问题有任何想法。无论如何,我采用了基于会话的解决方案。