Home >Web Front-end >JS Tutorial >Solve the compatibility issue between Jquery and prototype
1. When introducing jquery, introduce the jquery library before PRototype;
2. When using:
jQuery.noConflict(); // This should be added before
3. Initial loading (here I have tried it, there are two ways to write)
①jquery (document) .Ready (function () {
The $ symbol used in it, all use jQuery instead .
})
② jquery (document) .Ready ( Function ($) {// Add a $