Home >Web Front-end >JS Tutorial >Solve the compatibility issue between Jquery and prototype

Solve the compatibility issue between Jquery and prototype

黄舟
黄舟Original
2016-12-16 10:38:151141browse

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)! 🎜🎜🎜🎜
Statement:
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