Home > Web Front-end > JS Tutorial > body text

Solve the compatibility issue between Jquery and prototype

黄舟
Release: 2016-12-16 10:38:15
Original
1108 people have browsed it

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 $



🎜 🎜🎜 🎜🎜 🎜🎜 🎜🎜 🎜🎜 🎜🎜 🎜🎜}}} directly is to solve the content content of jQuery and prototype. For more related articles, please follow PHP Chinese website. (www.php.cn)! 🎜🎜🎜🎜
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template