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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -