Arhivă

Articole etichetate 'jquery'

Soluţie jQuery şi abordare mootools coexistenţa

  1: <html>
   <head>
     <<script Src="Mootools.js"> / script>
     <<script Src="jquery.js"> / script>
     <script>
       jQuery.noConflict (); / / jQuery utilizare, prin intermediul (...) jQuery
       jQuery (document). gata (funcţie () (
         jQuery ("div") ascunde ().;
       )); / / Utilizarea Prototip cu $(...), etc
       $ ("Someid") = Style.display. 'Nici unul';
     </ Script>
   </ Head>
   <body> </ body>
   </ Html> 
  2: 
  <html>
   <head>
      <<script Src="Mootools.js"> / script>
      <<script Src="jquery.js"> / script>
     <script>
       var $ j = jQuery.noConflict (); / / jQuery utilizare, prin intermediul $ j (...)
         J $ (document) Ready (funcţie (). (
         J $ ("div") Ascundeţi (.);
         )); / / Utilizarea Prototip cu $(...), etc
        $ ("Someid") = Style.display. 'Nici unul';
     </ Script>
   </ Head>
   <body> </ body>
   </ Html> 
  3: 
  <html> <head> <script src="Mootools.js"> </ script> <script src="jquery.js"> </ script> jQuery.noConflict <script> (); / / Pune toate codul documentul dumneavoastră jQuery zona gata (document) (. gata funcţia ($) (/ / Nu chestii jQuery utilizând $ $ ("div") etc. ascunde ();)); / / Utilizarea de prototipuri cu $(...), .. $ ("someid") style.display = 'Nici unul'; </ script> / head> <body> </ body> </ html> 
标签: , Categorii: Joomla Blog Tag-uri: ,