在autojs实现云端脚本(六)中, 我们实现了下载运行指定脚本,
今天,我们把代码整理一下, 完完整整的.
autojs交流群: 284029554
以下代码在前六节课中都可以找到, 这里只是整理到一块了, 经过测试可正常运行.
云脚本功能完成
'ui';
ui.layout(
bg='{ {this.bg}}' layout_weight="1" gravity='left|center'>
)
threads.start(
function () {
var config = {
appId: '填写你自己的',
appKey: '填写你自己的',
}
var scriptList = downLoadScriptList(config)
console.log('scriptList=')
console.log(scriptList)
// 间隔行变色
for (var i = 0; i < scriptList.length; i++) {
if (i % 2 == 0) {
scriptList[i].bg = '#87CEEB'
} else {
scriptList[i].bg = '#C0FF3E'
}
}
log('ui.scripts.se