javascript - c# mvc display data from webapi every 10 seconds -
i developing small application. want cycle through records api , display 1 of record in view every 10 seconds.
can me how achieve this?
thanks
you can use setinterval function in javascript:
setinterval(function(){ myfunctiontodothework();} , 3000); the 3000 refers milliseconds (3 seconds). change required.
see here : setinterval()
Comments
Post a Comment