createTipInfoView(currentWebview) {
const info = new plus.nativeObj.View('info', {
top: '75%',
left: '0px',
height: '100%',
width: '100%'
},
[{
tag: 'font',
id: 'scanTips',
text: "手动输入",
textStyles: {
size: '14px',
color: '#ffffff',
whiteSpace: 'normal'
},
position: {
top: '6px',
left: '10%',
width: '80%',
height: 'wrap_content'
}
}]);
info.interceptTouchEvent(true);
currentWebview.append(info);
info.addEventListener("click", (e) => {
console.log(0);
}, false)
},
第一次写 测试点击无效 求问怎么解决
1 个回复
喜欢技术的前端 - QQ---445849201
可以添加点击事件,再试试