JavaScript中的魔术方法

JavaScript中的魔术方法

问题描述:

JavaScript 下的任何 magic(al)方法

我明确感兴趣 setters , getters callables (函数/方法),就像我们在 PHP 中所拥有的那样: __ set __ get __ call && __ callStatic

I'm explicitly interested in setters, getters and callables (functions/methods), like those we have in PHP: __set, __get and __call && __callStatic.

我正在使用Google搜索和搜索*,但没有结果。

I was googling and searching *, but no results.

如果有人知情的话,拜托,谢谢!

Please, if anyone is informed - THANKS!