How to use Proxy to simulate PHP's __callStatic attribute in Node.js
I'm trying to create the same behavior in Node.js as the PHP__callStatic magic method. I'm trying to do it using a Proxy, but I'm not sure if it's the best option. classTest{constructor(){this.num=0}set(num){this.num=this.num+numreturnthis}get(){returnthis.num}}constTestFacade=newProxy({},{ge
P粉653045807 2023-09-04 09:05:21 0 1 264