2026-02-17 09:43:24
需要准备的材料分别有:电脑、html编辑器、浏览器。
1、首先,打开html编辑器,新建html文件,例如:index.html。

2、在index.html中的<script>标签,输入js代码:$('body').append('<img src="https://cdnss.haodaima.top/uploadfile/2026/0923/5f8dcf06d74b796a51269303a0d2e07b.png" />');。

3、浏览器运行index.html页面,此时图片被js成功显示到页面上。
