Prendi questo codice:
requestAnimationFrame(function (timestamp) {
console.log('one', timestamp);
});
requestAnimationFrame(function (timestamp) {
console.log('two', timestamp);
});
// logs:
// "one", 184.6999999834225
// "two", 184.6999...
posta
22.07.2015 - 14:40