我这设置查找空间并处理 遇到文本去浏览 就点击 咋不行啊 别的自己构建的都不行 他只会运行app 切和界面

shang
Aug 26, 2022 7:20:37 PM
import 'sys_' + getManufacturer() + '_runtime';
var __global gCaptcha = '';
var sShouldExit = false,
sPreADTimeout = false,
scrollIndex = 0,
scrollCount = 0,
index = 0;
var temp = null;
var ret = null;
var view = null;
var viewContainer = null;
var tag = null;
var item = null;
var index = null;
var data = '';
var text = '';

function main() {
var ret = launchApp('', '', {
maxStep: 30
});
if (1 == ret) {
ret = findView('txt:去浏览', {
maxStep: 5,
duration: 500
});
if (ret.length > 0) {
var viewContainer = ret.views;
var vIndex = 0;
var view = ret.views[vIndex],
tag = ret.tag;
if (tag == '去浏览') {
clickByTag('', {
duration: 500,
maxStep: 5,
isLongClick: false,
click: false
});
}
}
}
}

function removeTag(target, tag) {
var index = target.indexOf(tag);
if (index >= 0) {
var start = target.lastIndexOf('|', index);
var end = target.indexOf('|', index);
if (start < 0) {
start = -1;
}
if (end < 0) {
end = target.length - 1;
}
var txt = target.substring(start + 1, end + 1);
console.log('remove txt:' + txt);
target = target.replace(txt, '');
}
return target;
}
发表评论
最新评论
商务合作QQ:2231485359
Copyright © 2021-2022 杭州汇骋科技有限公司. All rights reserved. 浙ICP备15043866号-4