Jquery, which has been used at the front end of the project, needs to be added with a timely messaging function. As a result, it is thought of reversing Ajax. Naturally, DWR is simple and it has been encapsulated.
However, it was found that DWR and jquery both use the $ dollar symbol, so they conflicted.
I have checked a lot of information on the Internet. I suggest you change the $ of jquery to another one, but most of my projects use jquery. If you want to change it, it will be very troublesome.
So I found the information for modifying the DWR modifier. Here is my modification method:
Change the suffix of dwr.jarto A. rar file, decompress the file, find the util. js file, and open it.
Find:
Code:
- VaR $;
- If (! $ ){
- $ = DWR. util. byid;
- }
Change $ to the character you want to change and save it. Then, compress the entire folder. Change the suffix to. Jar. OK!