图像没有显示在我的页面正文中。所有这些都是空的imagebox。和控制台显示错误:图片没有显示在页面上?使用.append()
Failed to load resource: the server responded with a status of 404 (Not Found)
我所有的图像是一个名为ProductImages文件夹中的,所以我觉得我不使用该图像的正确的源代码,但仍无法得到它的工作。
$("#mainBody").append("<img src =" + imageFilename + ">");
'src'你必须给出正确的图像路径。似乎只有图像名称的'imageFilename'不是该图像的路径 –
imageFilename中的值是什么? – Darshak