I want to change top position of class bbb after 100 ms, but it took out that .css(top) does not work.
Please help.
&l
You should use setTimeout() instead of setInterval() this way alertFun() will only run once.
setTimeout()
setInterval()
alertFun()
let alertFunc = function() { $('.bbb').css('top', 100 + 'px'); } setTimeout(alertFunc, 100);
Bobobo