JavaScript-How to use the API

Source: Internet
Author: User
It means I don't know how to use the API. It's always easy to see people using them, but they don't know how to use them.

Reply content:

It means I don't know how to use the API. It's always easy to see people using them, but they don't know how to use them.

Easy to understand, API interface is to achieve a certain function of the package, can be encapsulated into function functions, can also be encapsulated into a service, such as the user to order the function, I have created orders encapsulated into the API interface, then the mobile phone app,pc end of the site, all using the next single API interface, can achieve the ability to create orders.
Any interface API has instructions to use the document, such as the Payment API interface, you pass the order ID, amount and other parameters, the interface to help achieve the payment success.


  
  

你指的什么API?

你可以把普通页面也理解为Api,这种Api输出的是html代码。

拿一堆参数A,去换另外一堆参数B。
参数A:{"username":chen,"age":20}
参数B:{"status":"ok"}
中间过程已经完成了

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.