获取view绝对位置失败

Oct 8, 2021, 3:49:45 PM
var thumbView = smartFindView('id:com.tencent.gallerymanager:id/photo_thumb_iv', {flag: 'find_all'}); if(thumbView.length <= 0){ console.log("没有照片退出"); return ; } var view = ret.thumbView[0]; console.log("lllllllllllllllllllllll" + (view.left+10.5)); console.log("ttttttttttttttttttttttt" + (view.top+10.5)); gestureClick(thumbView[0].left+10.5, humbView[0].top+10.5, {unit:'px',duration:500,afterWait:1500}); 日志信息: 1603 15:47:30.693 lllllllllllllllllllllllundefined10.5 1608 15:47:30.696 tttttttttttttttttttttttundefined10.5
发表评论
最新评论
商务合作QQ:3765323427
Copyright © 2021-2024 冰狐智能辅助. All rights reserved. 浙ICP备15043866号 《冰狐智能辅助服务协议》