To resolve the conflict between jQuery and the prototype,is there any way other than jQuery request to resolve through
jQuery.noConflict
and using jQueryinstead $('code').code;
jQuery
$('code').code
Could we ask the prototype $to leave and allow.
$
PrototypeJS JavaScript, jQuery. , : Ajax, $, $$, $F, Abstract, Form, $A, $H, $R, $w. api.prototypejs.org.
Ajax
$$
$F
Abstract
Form
$A
$H
$R
$w
, : jQuery.noConflict() PrototypeJS.
jQuery.noConflict()
, jQuery $ :
jQuery.noConflict(); jQuery(function ($) { // $ is the jQuery object in here // and doesn't conflict with Prototype });
.
, " ", .
- http://api.prototypejs.org/, $, noConflict() jQuery.
noConflict()
I wonder what function do you need for you to still use the prototype? There may be plugins for jQuery for this function. Using 2 libraries on one page will make your page bloated by the size of each library.
Source: https://habr.com/ru/post/1731141/More articles:Please recommend a deployment method in a Linux box on a LAN - linuxShould I use the function in a situation where it could be called an extreme number of times? - c ++How to get information about a region of a region / country in web-applicaiton? - web-applicationshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1731139/how-to-set-language-of-web-page-determined-by-visitor-language&usg=ALkJrhj7LiZUxfVErfmbApplVUb72SAyJA.Net Critical areas in the stream do not work as desired - multithreadingNSImage Acts Weird - objective-cUsing boost :: random and getting the same sequence of numbers - c ++mysql optimization - displaying the last 10 records, but also identifying duplicate rows - optimizationProblem with last php doctrine identifier - phpGetting raw data from a frequency table - rAll Articles