search

Home  >  Q&A  >  body text

android - How to perform delay operations on weex pages, such as countdown

Make a timer for registering to obtain the verification code. How to write it? Using window.timeout does not work on Android

怪我咯怪我咯2792 days ago1074

reply all(2)I'll reply

  • PHPz

    PHPz2017-05-16 13:37:13

    setTimeout , setInterval It can be used directly, refer to here: https://github.com/weex-plugi...

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 13:37:13

    Use it like in js

    <script>
        setTimeout(function(){
          //do some thing
        },1000);
    </script>

    reply
    0
  • Cancelreply