Angular cross-domain (angular Baidu drop-down hint simulation) and angular tab

Source: Internet
Author: User

$http Services in 1.angular:

$http. Get (url,{params:{parameter}}). Success (). Error ();

$http. Post (url,{params:{parameter}}). Success (). Error ();

$http. JSONP (url,{params:{wd: ', CB: ' Json_callback '}}). Success (). Error ();

Note that the CB in the JSONP angular can only use Json_callbac

$watch (who, what to do, false);

Who is talking about who to listen to, what to do refers to the function that will be triggered when the listener changes, the last parameter Boolean, true for depth monitoring, such as the Listener object arr, the function is triggered when each item in ARR is changed, and true also indicates that it can listen to more than one If False by default, only a single object can be listened to.

The following use angular Jsonp to do a simple Baidu search down, the original Baidu search down in front of the article written, interested can search for a look

<!doctype html>

  

2.angular tab, I think the tab is simple, but through the tab can show a lot of ideas, this angular tab is still very simple

<!doctype html>

  

Angular cross-domain (angular Baidu drop-down hint simulation) and angular tab

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.