会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
百索园前端
懂一点代码的程序员
博客园
首页
新随笔
联系
订阅
管理
2022年10月8日
Vue中如何使用动态绑定方式使用静态图片?
摘要: 方法1(不推荐): 将图片放到public目录下,即可以正常使用。 方法2(推荐): 不妨建立common文件夹,然后建立common.js文件,写个函数,如下: export const getAssetsImages = (name) => { return new URL(`/src/asse
阅读全文
posted @ 2022-10-08 09:55 RHCHIK
阅读(194)
评论(0)
推荐(0)
编辑