Webpack 无法识别使用 jQuery attr 插入的图像
continue
I first created an Electron app which worked without any problems and now I want to transfer it to Webpack.
But now I'm facing the problem that everything works so far, but my images, which I added with the jQuery attr command, are not loaded.
Error Message:
Failed to load resource: the server responded with a status of 404 (Not Found)
jQuery inside html file:
$('#slide1').attr("src","./images/example_image.png");
Is there anything I need to consider in connection with jQuery attr and Webpack or where could be the error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论