javascript - 我想将图像传递到弹出页面
问题描述
function openChild()
{
window.name = "parentForm";
window.open("popup.html",
"crop", "width=570, height=350, resizable = no, scrollbars = no");
}
<input type="file" id="imgs" name="imgs" accept="image/jpeg, image/jpg, image/png">
<br><br>
<input type="button" value="Image Crop" onclick="openChild()"><br>
我想将“imgs”传递给popup.html,并且我想在popup.html 上使用图像的src。我怎样才能通过它?请帮我。
解决方案
推荐阅读
- c# - 在 Zebra SDK 中找不到“UsbConnection()”类
- makefile - 无法使用介子安装 glib 库
- python-3.x - 具有外生变量和线性时间趋势的 StatsModels SARIMAX
- oracle - Oracle 触发器无法在 if 子句中包含逻辑
- python - 在 pandas 中创建新列引发 AttributeError:(“'str' 对象没有属性 'str'”,'发生在索引 0')
- python - 如何使用 Chromedriver 和 Selenium Python 在 Instagram 登录页面中找到用户名和密码字段
- javascript - 在 JavaScript 中更改数组中的值
- python-3.x - Apache Beam Jupyter Notebook:ImportError:无法从“google.cloud”(未知位置)导入名称“storage”
- android - 重构活动仅在提供的数据上有所不同
- python - googleapi python如何获取/刷新访问令牌