javascript - 将所选图像显示到另一页
问题描述
please see this image I have a grid images page and a button to finish and wanted to select some or all of them and when all or some are selected then the selected image should be display on another page. 我该怎么做,请帮忙
解决方案
你实际上有两个选择:
- 您可以在每次选择时将所选图像保存在服务器上
- 您可以使用客户端的本地存储来保留图像的选择。
如果您想知道如何执行第二个选项,请访问: https ://www.w3schools.com/html/html5_webstorage.asp
那里解释得很好
推荐阅读
- docker - 如何在撰写 docker 文件中执行复制目录?
- python - 从 pd.crosstab 中的混淆矩阵中找到准确度
- javascript - 如何在 React 中路由具有相同链接的组件?
- python - ModuleNotFoundError:没有名为“ramaelectricstore.wsgi.application”的模块;“ramaelectricstore.wsgi”不是一个包
- python - 如何从 Tensorflow 中提取“图像”和“标签”?
- python - 如何让我的按钮知道输入框中的内容,然后在新窗口中打印该值?
- c++ - C ++中是否有atof的替代品
- react-native - 某些国家/地区不提供 PayPal 客人结账功能
- linux-kernel - 在 MX linux 中没有为 ax200 加载 iwlwifi 驱动程序
- node.js - 无法使用 Preact 安装 Next.js