A loop statement, in the case of optimal optimization

in the case of a five-second cycle, the java background returns data to the foreground each time, or the foreground js directly realizes the loop itself.

1. Although the answer may be biased towards the fast circulation of the js foreground itself (but still hope to have a better answer)
2. The second question, the difference between js and jq, I don"t think there is any difference. I don"t quite know who can answer it

.
quotation text
Mar.10,2021

1 does not quite understand what you mean by five-second loop. I roughly understand that it is pushed to the front-end
every 5 seconds, but in the case of web worker and webAssemly, the performance of the front-end loop is not too weak
but the network is a complex thing, without a network request. The front end should not deal with cpu-intensive tasks
but specific analysis of specific problems
2 jq is a library that encapsulates a series of operations such as dom in js (compatible with various browsers what), jq can do, js must do, otherwise

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e464da-651bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e464da-651bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?