<img alt="placeholder" src={ALL.file1.default}></img> 上面的工作和渲染图片。 我尝试使用模板文字来使1成为一个动态变量。我使用图像文件夹中的index.js导入了所有图片,分别导出所有图片,然后使用以下命令导入: import * as ALL from "../images/icons/"; 我是不是不正确地使用了模板文字,或者这
在的帮助下成功地将图像添加到窗口对象后,我尝试将图像添加到白色背景中。图像是png格式的,所以它是透明的,但即使设置了clear参数,背景也显示为黑色。对此有什么帮助吗?// function that adds general elements to the window (top bar, icon, title, and text) // Top rectangle position: new Vecto