
如图:需求是点击下方图片使图片出现在上方。我在开发一款用户自制logo的微信小程序,请教大佬指点,非常感谢!
微信小程序开发问题解答
微信小程序开发者回答:
WXML 内容:默认大图为1_big.png,图片名称、地址自己改
图形
JS:
const app = getApp()
Page({
data: {
},
change(e){
this.setData({
imgId : e.currentTarget.dataset.id
})
}
})
本文网址:http://www.91bianli.com/weixinxiaochengxu/1566.html