十四、字符串与变量拼接

1
2
3
4
5
6
7
8
9
10
11
alert(`${item.label}不能为空!`)

this.state.children.map( (path, index)=> {
return (
<Image key={`thumnail${index}`}
source={{uri: path}}
style={{width:60,height:60}}
/>
)
}
)