I found a solution to the conflict between jQuery and Prototype. Previously, it seems that jQuery and prototype are in conflict, but I have never cared about it. Today, I put the message prompt box special effects I wrote with the jquery framework into the company's original system and found that all the message prompts went on!
After sweating for a long time, I still did not find the cause. I suddenly thought of the conflict between jquery and prototype. Only then did I find that many pages of the company's original system call the prototype framework. If you know the reason, try to solve the problem. I will never try again without jquery. I searched the internet and finally found some solutions. This is:
1. Put jquery. js behind prototype. js (this is required; otherwise, it will still be on strike in any case ).
2. Rename the $ variable after jquery. js.
The method is as follows:
The Code is as follows: