Arhiiv

Artiklid kodeeritud "jQuery"

Lahendus jQuery ja Mootools kooseksisteerimise lähenemine

没有评论 22. detsember 2009 nhuang No Comments
  1: <html>
   <head>
     <script src="Mootools.js"> </ script>
     <script src="jquery.js"> </ script>
     <script>
       jQuery.noConflict (); / / Kasuta jQuery kaudu jQuery (...)
       jQuery (dokument). valmis (function () (
         jQuery ("div"). peita ();
       )); / / Kasuta Prototype koos $(...), jne
       $ ("Someid"). Style.display = 'none';
     </ Script>
   </ Head>
   <body> </ body>
   </ Html> 
  2: 
  <html>
   <head>
      <script src="Mootools.js"> </ script>
      <script src="jquery.js"> </ script>
     <script>
       var $ j = jQuery.noConflict (); / / Kasuta jQuery kaudu $ j (...)
         $ J (dokument). Ready (function () (
         $ J ("div"). Peida ();
         )); / / Kasuta Prototype koos $(...), jne
        $ ("Someid"). Style.display = 'none';
     </ Script>
   </ Head>
   <body> </ body>
   </ Html> 
  3: 
  <html>
    <head>
      <script src="Mootools.js"> </ script>
      <script src="jquery.js"> </ script>
      <script>
        jQuery.noConflict (); / / Pange kõik oma koodi oma dokumendi valmis ala
        jQuery (dokument). valmis (funktsioon ($) (
          / / Kas jQuery kraami kasutades $
          $ ("Div"). Peida ();
       )); / / Kasuta Prototype koos $(...), jne
       $ ("Someid"). Style.display = 'none';
      </ Script>
    </ Head>
    <body> </ body>
    </ Html> 
标签: , Kategooriad: Joomla Blog Tags: ,