def fn(p): _console.log("一秒后执行") _threads.sleep(1000) _console.log("再一秒后执行") _threads.getMain().getTimer().setTimeout(fn, 1000) _threads.sleep(1000) _console.log("一秒后执行")