posts - 495,comments - 227,trackbacks - 0

          方法一:

          <html>  
           <head> 
             <script src="prototype.js"></script> 
             <script src="jquery.js"></script> 
             <script> 
               jQuery.noConflict();  
                 
               // Use jQuery via jQuery(...)  
               jQuery(document).ready(function(){  
                 jQuery("div").hide();  
               });  
                 
               // Use Prototype with $(...), etc.  
               $('someid').style.display = 'none';  
             </script> 
           </head> 
           <body></body> 
           </html>

          方法二:

          <html>  
           <head> 
             <script src="prototype.js"></script> 
             <script src="jquery.js"></script> 
             <script> 
               var $j = jQuery.noConflict();  
                 
               // Use jQuery via $j(...)  
               $j(document).ready(function(){  
                 $j("div").hide();  
               });  
                 
               // Use Prototype with $(...), etc.  
               $('someid').style.display = 'none';  
             </script> 
           </head> 
           <body></body> 
           </html> 

          方法三:

          <html>  
           <head> 
             <script src="prototype.js"></script> 
             <script src="jquery.js"></script> 
             <script> 
               jQuery.noConflict();  
                 
               // Put all your code in your document ready area  
               jQuery(document).ready(function($){  
                 // Do jQuery stuff using $  
                 $("div").hide();  
               });  
                 
               // Use Prototype with $(...), etc.  
               $('someid').style.display = 'none';  
             </script> 
           </head> 
           <body></body> 
           </html> 

          posted on 2007-06-25 17:48 SIMONE 閱讀(748) 評論(0)  編輯  收藏 所屬分類: AJAXJavaScript
          主站蜘蛛池模板: 儋州市| 盐山县| 叶城县| 绥芬河市| 无棣县| 南华县| 迁安市| 凤翔县| 通州市| 昌宁县| 佛学| 南丰县| 读书| 秭归县| 仲巴县| 巴林右旗| 称多县| 罗源县| 陆丰市| 大新县| 中江县| 开阳县| 南川市| 武汉市| 沂水县| 淳安县| 清苑县| 藁城市| 贵德县| 安陆市| 利津县| 车致| 桂东县| 神池县| 綦江县| 馆陶县| 郴州市| 汉中市| 逊克县| 建始县| 祥云县|