【发布时间】:2017-03-01 20:57:44
【问题描述】:
$('#userInfoPhoto').html(function () {
return '<img src="../uploads/' + thisUserObject.profileimage + '" alt = "userphoto" style="width:250px; height:250px"/>'
});
这是前端js 我怎么能像这样使用图像文件夹中的上传文件,而 thisUserObject.profileimage 是文件的名称(只是一个没有后缀的文件)
【问题讨论】:
-
您是要去掉
../uploads部分还是图片的扩展名?
标签: javascript node.js express