//wxml
//js
data: {
Listsumg: [
{
imgList: '../../images/1.jpg'
},
{
imgList: '../../images/2.jpg'
},
{
imgList: '../../images/3.jpg'
}
],
border:'',
clickId:'',
borders:''
},
imgList:function(e){
console.log(this.data.imgLists[e.currentTarget.id])
this.setData({
border:"1rpx solid #eee",
borders:'10rpx 10rpx 10rpx rgba(141, 161, 167, 0.9);',
clickId:e.currentTarget.id
})
},
标签:..,imgList,jpg,js,点击,10rpx,images,border,css
来源: https://www.cnblogs.com/minghan/p/13266417.html