getElementById('hero-img').src = imgUrl. 例如, imgUrl 在开发时会是 /img.png ,在生产构建后会是 /assets/img.2d8efhg.png 。 行为类似于Webpack 的 file-loader ...
確定! 回上一頁