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.