摘要: class Person { constructor(name, age) { this.name = name this.age = age } } function creataOnlyOneCls(target) { let cls; return new Proxy(target, { co 阅读全文
posted @ 2024-07-26 16:21 howhy 阅读(1) 评论(0) 推荐(0) 编辑
摘要: function createFunOverLoad() { const funMap = new Map() console.log(funMap) const funOverLoad = function (...args) { const key = args.map(param => typ 阅读全文
posted @ 2024-07-26 15:47 howhy 阅读(2) 评论(0) 推荐(0) 编辑