<li class="floor-item">
<a href="./list.html?categoryId=100007">
<span class="floor-text">电视</span>
<img class="floor-img" src="<%= require('../image/floor/floor1-2.jpg') %>" alt="电视" />
</a>
</li>
这一段代码使用webpack反复出错,可能原因是路径原因
解决方案:https://www.cnblogs.com/saysmy/p/9089374.html
所以在此处解决方案:
<a href="./list.html?categoryId=100006">
<span class="floor-text">双开门冰箱</span>
<img class="floor-img" src="${require('../images/floor/floor1-1.jpg')}" alt="双开门冰箱" />
</a>
真的是愁死人了!!!