請問怎么通過url-loader引入多張圖片呢?
import?homeBg1?from?'./image/homeBg1.jpg'; import?homeBg2?from?'./image/homeBg2.jpg'; import?homeBg3?from?'./image/homeBg3.jpg';
如果頁面上圖片很多,這樣做太麻煩了,有沒有批量引入的辦法呢?
import?homeBg1?from?'./image/homeBg1.jpg'; import?homeBg2?from?'./image/homeBg2.jpg'; import?homeBg3?from?'./image/homeBg3.jpg';
如果頁面上圖片很多,這樣做太麻煩了,有沒有批量引入的辦法呢?
2016-05-19
舉報