the first one you mentioned was only used in virtual-DOM diff & flush algorithm. The timeout api used by JS bundle (app) was in app/ctrl. If you tried "setTImeout" in app on Android or iOS, that should be working...
2017-03-23 15:37 GMT+08:00 jiyinyiyong <[email protected]>: > Turned out it works in Legacy framework... > https://github.com/apache/incubator-weex/blob/master/ > html5/frameworks/legacy/app/ctrl/init.js#L84-L103 > > On Thu, Mar 23, 2017 at 12:34 PM jiyinyiyong <[email protected]> > wrote: > > > I encountered the problem yesterday that `setTimeout(function(){})` > return > > `undefined` to me, which was supposed to be a number since it's a number > in > > JavaScript. For some cases, I need to use `clearTimeout` to manage some > > delayed tasks. > > > > At first I was playing around on Android, it does not work. I tried iOS, > > failed too. > > > > By reading the code, it's just simply not implemented... it that right? > > > > > > https://github.com/apache/incubator-weex/blob/master/ > html5/shared/setTimeout.js#L24-L27 > > > > Any previous plan for setTimeout? > > > -- *来自* *Jack*
