JavaScript的内置functions


浏览器内置的function很多
Manth.random()
In fact, some of the code you are calling when you invoke(a fancy word for run, or execute) a built in browser function couldn't be written in JavaScript -- many of these functions are calling parts of the background browser code, which is written largely low-level system languages like C++, not web languages like JavaScript.

invoke  (a fancy word for run, or execute)援引;援用(法律、规则等作为行动理由);提及(某人、某理论、实例等作为支持);提出(某人的名字,以激发某种感觉或行动)。

很多内置的浏览器function并不属于JavaScript语言的core, 其中一些是browser的APIS,还有些第三方APIs

  1. Browser APIS
    1. DOM API
    2. Geolocation API
    3. Canvas and WebGL APIs  —see Chrome Experiments and webglsamples.
    4. Audio and Video APIs
      1. HTMLMediaElement
      2. WebRTC
  2. Core JavaScript Language
  3. Third party APIs
    1. Twitter API
    2. Google Maps API

Functions versus methods

函数function是对象的方法methods.


阅读量: 488
发布于:
修改于: