Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
好像更新不了呢?我要换个字啊,动态的
ui.post(()=>{ 更新ui的代码 }); ui.run(()=>{ 更新ui的代码 }); 注意两者的区别
@admin 什么区别,我都不知道 顺便说说呗
@wu737 ui.run会等待该函数执行完成,并把结果返回给当前线程。例如:
let text = ui.run(()=>{ ui.xxx.setText("123"); return ui.yyy.getText(); });
ui.post则不会等待函数执行,而是马上执行当前代码的下一行。
@admin 谢谢,回复真快
@admin 在 线程里怎么更新UI 中说:
:09:38.432/E: TypeError: Cannot find function postDelay in object Handler (com.stardust.util.UiHandler) {f1c2e3}. (ui.js#58) at script(ui.js:58) at script(<loveu>:161)
报错了呢
@wmde 更新4.0Alpha版本
与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待