【发布时间】:2016-06-22 18:32:23
【问题描述】:
我在一个页面上有 3 个 html 范围滑块字段,我想将它们的值存储在一个 cookie 中,以便滑块将保存用户在滚动离开页面并稍后返回时选择的数据。我需要把它保存 3 个小时左右。
<input type="range" id="loan" name="loan" min="5000" max="500000" step="5000">
<input type="range" id="period" name="period" min="1" max="15">
<input type="range" id="earn" name="earn" min="5000" max="500000" step="5000">
我对 javascript 和 php 非常陌生。我在谷歌上搜索了教程,但我看到的示例看起来比我需要的要复杂。
【问题讨论】:
标签: javascript html cookies