Revision: 24019
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 18, 2010 15:44 by keanu
Initial Code
<!-- jquery gets the "$" method --> <script type="text/javascript" src="jquery-1.4.js" /> <!-- mootools doesn't steal the "$" method; instead, document.id will be used --> <script type="text/javascript" src="mootools.js" /> <!-- lets use them --> <script type="text/javascript"> //with jquery, grab all links, make then red $('a').css('color','red'); //with mootools, get the content div, set it's background color to pink document.id('content').setStyle('background','pink'); //with mootools, get the content div, set it's background color to pink //this time, we'll give mootools the "$" method (function($) { $('content').setStyle('background','pink'); })(document.id); </script>
Initial URL
http://net.tutsplus.com/tutorials/javascript-ajax/make-your-mootools-code-shorter-faster-and-stronger/
Initial Description
from [here](http://net.tutsplus.com/tutorials/javascript-ajax/make-your-mootools-code-shorter-faster-and-stronger/ "")
Initial Title
讓 jQuery 與 MooTools 並å˜
Initial Tags
Initial Language
JavaScript