摘要: 直接上代码: // 字符串路径 require('路径/test1.jpg') // 变量路径 var img_src = 'test1.jpg' var context = require.context('文件的路径', true, /test\d+\.jpg$/); // 第一个参数:文件的路 阅读全文
posted @ 2021-05-20 17:07 做个笔记 阅读(5157) 评论(0) 推荐(0) 编辑