Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

A method is a function which is a property of an object. It exist two kind of methods: Instance Method which are built-in tasks performed by an object instance, or Static Methods which are tasks that can be performed without the need of an object instance.

Note: In JavaScript functions themselves are objects, so, in that context, a method is actually an object reference to a function.

Learn more

Learn about it

Technical reference

文档标签和贡献者

 最后编辑者: chrisdavidmills,