Baidu knows that Baidu

Source: Internet
Author: User

Baidu knows that Baidu
Baidu to implement the same search function as Baidu Homepage

I want to get started with IT programmers ~ There is no such feeling... it is so crazy to achieve the desired results and the ability is still limited. How can I find a solution. So today, I will share my experience and experience in implementing Baidu's search functions when I knock on the Baidu homepage.

There was no problem with the layout at that time! The problem is that after entering the content to be searched, how can I achieve the same search function as the original Baidu when I click Baidu, I thought it was using jsonp for cross-Origin data requests... in this case, I cannot understand jsonp. What should I do?

Sorry, I was at a loss. I chatted with an old friend one night without knowing it (when I had a problem in my heart, there is always a kind of feeling that you can't forget it. You must solve it before you can feel at ease .); My friend learned PHP, and he said, "The method to obtain the get attribute can be implemented without cross-origin ." After hearing this, I was excited and worried: "Is this a simple question ?"

In the end, we will be able to learn the truth! With his guidance, I learned how to get the method: "get" in the form, implementing the long-struggling problem. I am very happy and very grateful to you for your good old friend! The Kaner in my heart is gone, and I feel relaxed.

Therefore, due to my feelings, I am willing to share with you the difficulties and lessons I have learned in my studies! At the same time, I hope more friends can discuss and learn together to solve the difficulties. In my opinion, sharing is a pleasure and a charm !!

The code and implementation results are as follows:
1 <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 

[Conclusion]

We must have a teacher.

A lot of support, there are deficiencies, a lot of messages.

 

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.