如何使用jQuery在弹出窗口中预览选定的输入类型为“文件”的图片?
如何使用jQuery在弹出窗口中预览选定的输入类型为“文件”的图片?
这个问题已经在这里得到了答案:
在我的代码中,我允许用户上传图像。现在我想在同一个弹出窗口中显示此选定的图像作为预览。我如何使用jQuery来实现它?
以下是我在弹出窗口中使用的输入类型。
HTML代码:
admin 更改状态以发布 2023年5月22日
这个问题已经在这里得到了答案:
在我的代码中,我允许用户上传图像。现在我想在同一个弹出窗口中显示此选定的图像作为预览。我如何使用jQuery来实现它?
以下是我在弹出窗口中使用的输入类型。
HTML代码: