search

Home  >  Q&A  >  body text

html5 - JavaScript API 是什么?

我想了解html5,我搜html5的时候,看了一个回答

所以HTML5网站不仅仅指使用了HTML5标签,还有新的JavaScript API,CSS3等一系列的新的技术。

现在这个JavaScript 的节点操作,事件绑定,ajax我都学了,怎么还一个api?

这api 是属于什么技术的?
怎么木有见过呀,是JavaScript的,还是别的编程的?

我搜了百度,还有什么windows,vb6.0什么的,我觉得应该和我想搜的不是一个东西,上面那个回答里的api 是说的是什么,怎么入门学习一下?

黄舟黄舟2768 days ago459

reply all(5)I'll reply

  • 黄舟

    黄舟2017-04-17 13:32:56

    What is API? Application Programming Interface, application programming interface. That is to say, it can provide you with some methods to make your development simpler. It is not a technology. To put it bluntly, it is a collection of default methods provided by a language. It's not as good as the push method of js array. When you want to add elements to the array, you don't need to loop to do it. You can add the elements directly by pushing. This push method is an API provided by js. Generally, more mature languages ​​​​will have API documents. You don’t have to read them all. When using it, check the function you want online. Generally, they will give you recommended methods to implement it. You can go to the API document to see how this method works. It's ok to use. This is what the API is for.
    The above statement is not completely accurate, but the general meaning is okay.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:32:56

    The newly introduced JavaScript api in html5

    To put it bluntly, it is some JavaScript interfaces that can only be called by html5. Older versions of browsers do not support it

    You can check out this website http://html5index.org/

    reply
    0
  • 迷茫

    迷茫2017-04-17 13:32:56

    API in Chinese can be interpreted as: Application Programming Interface

    So you can think of JavaScript as an application. Then the DOM operation event binding ajax you mentioned can be regarded as an open API, allowing you to call and interact with the application, thereby realizing your own application. Program

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 13:32:56

    Good morning, for example:

    Array.from();

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 13:32:56

    Don’t make trouble, what is the full name of api? -Application Programming Interface, this is obviously a slightly abstract term. If you go directly to Baidu and search for the keyword api, you will definitely get any result. This is just like if you search for "auto parts", you will get a variety of results, but the results are the same. The bottom line is that your search target is too large.

    Back to your question, your question obviously has a context, that is javascript api, what is this? Of course, it refers to the application programming interfaces in the javascript language. Is this still difficult to understand? Let me be more specific, what is Math.max? Array.prototype.pushWhat is it? document.querySelectorWhat is it? These are all javascript api!

    You can check out the documentation: javascript API, web API to learn more

    reply
    0
  • Cancelreply