javascript - setInterval to requestAnimationFrame -


How to convert the following setInterval () to request?

Below is a simple task set interface that I'm using.

  $ (document) .ready (function () {$ ("# add"). Click (function () {$ ('# result'). Html ((perforflight ($ ('' NAA '') .Val ()) + Perfalot ($ ('# NMB'). Val ()) .ststring ());} set interval (function () {$ ("#add") Click ()}, 1000);}).  

I have seen a one whose loop is required, but my code is not about gaming. It's about parse the strings.

The document is a bit complicated. I have tried some tests-errors, but no success so far.

Thanks for any input.

You need to repeatedly apply the requestAnimationFrame , for example :

 ! Function frame () {$ ('# add'). ) RequestAnimationFrame (frame)} ()  

Demo:


Comments

Popular posts from this blog

GO: Serve static pages -

java - how to parse a JSON string into ObjectNode in Jackson? -

Folder list php -