Image require with variable path not working

后端 未结 0 1493
执笔经年
执笔经年 2021-01-22 15:12

Actually trying to check if file(image) exists to add it to render.

Confused that this code works

let i = 2;
let s = require(\'../../public\' + this.cardDa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题