获取view绝对位置失败

姆巴哥pro
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:29600731
Copyright © 2021-2022 杭州汇骋科技有限公司. All rights reserved. 浙ICP备2021024418号