Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在本地运行网站时,如何将图像上传到我的网站。我试过这个:
$('#submitImage').click(function(){ var img1 = $('#imageUpload').val(); $('#container').append('<img src="'+img1+'"/>'); });
但显然路径不正确,这是因为路径必须相对于我的 index.html 文件吗?我该如何解决这个问题?