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