Which function is used to accept the returned value?

Source: Internet
Author: User
Which function is used to accept the returned value has an API. you need to use form pos to get the returned data to an address. & Lt; form & nbsp; actiondnsapi. cnRecord. list & nbsp; methodpost & gt; & lt; input & nbsp; typetext & nbsp; value logon email address & nbsp; what function does name use to accept returned values?
There is an API that requires a form pos to an address and then obtains the returned data.

 

  







After clicking submit, I will link to the above API address. how can I directly display the value returned by the API address on this page? thank you.
------ Solution ----------------------
You can use jquery's ajax function to implement, the document in this is the http://api.jquery.com/jQuery.ajax/
------ Solution ----------------------
$. Ajax ({
Type: "POST ",
Url: "https://dnsapi.cn/Record.List ",
Data: $ ("# formid"). serialize (),
Success: function (data ){
Alert (data );
}
});

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.