/html5/frameworks/legacy/ is Vue framework

So “the Vue version used timer.setTimeout”
Vanilla framework means “a framework has nothing”if you want to use
setTimeout in Vanilla framework,just weex.requireModule(‘timer’) by
yourself


在 17/3/24 下午12:21, "jiyinyiyong" <[email protected]> 写入:

>Does the Vue version used `timer.setTimeout` too. I guess that API is
>working correctly. As far as I know, Vanilla framework does not do
>`weex.requireModule('timer')`.
>
>On Fri, Mar 24, 2017 at 11:41 AM Jack Pu <[email protected]> wrote:
>
>> 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*
>>


Reply via email to