注册时间
最后登录
新帖
发布在 bug、问题、建议 阅读更多

@mogoyu这个是软件问题还是我的写法问题? 中说:

const json = '{"result":true, "count":2}';

是你不懂 javascript 语法

const json = '{"result":true, "count":2}';
你把这里的2 改成 200 , 就打印200 了

发布在 技术交流 阅读更多

请教下: 为何自动给截屏权限必须要android 9 以上的版本? android 8 为何不可以?

//安卓版本高于Android 9
if(device.sdkInt>28){
    //等待截屏权限申请并同意
    threads.start(function () {
        packageName('com.android.systemui').text('立即开始').waitFor();
        text('立即开始').click();
    });
}
//申请截屏权限
if (!requestScreenCapture()) {
    toast("请求截图失败");
    exit()
}