mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
17 lines
521 B
JavaScript
17 lines
521 B
JavaScript
// requestAnimationFrame对象
|
|
requestAnimationFrame = () => {
|
|
console.log_copy(`使用 requestAnimationFrame arg->`, arguments);
|
|
};
|
|
bodavm.toolsFunc.safefunction(requestAnimationFrame, "requestAnimationFrame");
|
|
bodavm.toolsFunc.defineProperty(requestAnimationFrame, "length", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 1
|
|
});
|
|
bodavm.toolsFunc.defineProperty(requestAnimationFrame, "name", {
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: false,
|
|
value: 'requestAnimationFrame'
|
|
}); |