2690. 无穷方法对象
2025年6月25日小于 1 分钟
2690. 无穷方法对象
function createInfiniteObject(): Record<string, () => string> {
return new Proxy({},{
get:(target,props)=>{
return ()=>props;
}
})
};```
function createInfiniteObject(): Record<string, () => string> {
return new Proxy({},{
get:(target,props)=>{
return ()=>props;
}
})
};```