jQuery vs. Mootools und andere Frameworks

TomatoCart mit jQuery und MooTools

© jQuery.com – http://jquery.com/

jQuery vs MooToolsMooToolsjQueryMootoolsjQueryCommerceTomatoCart($)MooTools
<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

Möglichkeit 1

<script type="text/javascript">
jQuery(document).ready(function(){
//Hier folgen, wie gewohnt die jQuery-Anweisungen
};
</script>

Möglichkeit 2


<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$.noConflict();
jQuery(document).ready(function($) {
// Hier folgt der jQuery-Code mit der $-Anweisung
});
// Hier folgt der Code anderer JavaScript Frameworks.
</script>

Möglichkeit 3


<script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function(){
//Hier folgen, wie gewohnt die jQuery-Anweisungen.
};
</script>

Google+

Michael Brückner Michael Brückner

wallpaper-1019588
Top 3 Vietnamesen in München – meine Empfehlungen für 2025
wallpaper-1019588
[Review] Manhwa ~ Lady Eris ~ Nur der Tod kann mich erlösen 4
wallpaper-1019588
Die Insel Koh Chang entdecken – Wo Dschungel auf Traumstrände trifft
wallpaper-1019588
Koh Tao Island Thailand – Ein magischer Ort voller Licht und Schatten