jsx中的路径拼接

<img style={{height:80,width:80}} src={"/images/"+index+ ".jpg"}/>
其中 index是变量
posted @ 2019-11-05 23:13  doctor海  阅读(341)  评论(0编辑  收藏  举报