代码如下:
是写错了吗?
var coupon = new plus.nativeObj.View('coupon', {
width: '100%',
height: '100%',
backgroundColor: 'rgba(0,0,0,0.5)'
}, [{
id:'bitmapCoupon',
tag: 'img',
src: 'images/coupon_content_bg.png',
sprite: {
width: '100%'
},
position: {
width: '100%',
height: '65%',
top: '10%'
}
}, {.....
coupon.addEventListener('click', function(){
console.log(plus.nativeObj.View.getViewById('bitmapCoupon'))
});
1 个回复
binladen (作者)
@DCloud_客服_Trust
@DCloud_App_Array
@踩着单车载着猪