js中Math的几个函数

2025-05-13 19:39:29
推荐回答(1个)
回答(1):

console.log(Object.getOwnPropertyNames(Math).filter((function (name) {
            return typeof Math[name] === 'function';
        })).length); //有35个函数