我想渲染图像,用户上传他们的调查。
我通过控制台登录了this.props.surveys
,很明显其中有一个imageUrl
属性。
renderImage() {
console.log(this.props.surveys);
}
// output:
0:
body: "asdfg"
imageUrl: 'bf0idba0inbdbnadbidfbn'
no: 0
subject: "another survey with image"
title: "My Second Image Survey"
我希望它能从该imageUrl
渲染出图像,但当我执行console.log(this.props.surveys.imageUrl);
时,它返回未定义的结果
https://stackoverflow.com/questions/56469449
复制相似问题