一、API概念
API(Application Programming Interface,应用程序接口)是一些预先定义的函数,或指软件系统不同组成部分衔接的约定。 目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问原码,或理解内部工作机制的细节。——百度百科
An application programming interface (API) is an interface or communication protocol between a client and a server intended to simplify the building of client-side software. It has been described as a “contract” between the client and the server, such that if the client makes a request in a specific format, it will always get a response in a specific format or initiate a defined action。——WIKIPEDIA
简而言之,API就是接口,就是通道,负责一个程序和其他软件的沟通,本质是预先定义的函数。可以理解为API是开发者编写好的代码或编译好的程序,当使用该代码和程序时就叫做调用API。
二、ArcGIS API for JavaScript概念
上文已经提到API就是已经编写好的程序或代码,那么显而易见,ArcGIS API for JavaScript就是ESRI公司用JavaScipt语言编写的一套程序接口。用户可以通过调用API获取A

367

被折叠的 条评论
为什么被折叠?



