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) 評(píng)論(0)  編輯  收藏 所屬分類: AJAX 、JavaScript
          主站蜘蛛池模板: 贵定县| 布尔津县| 高唐县| 杭锦后旗| 子长县| 平乐县| 正镶白旗| 石棉县| 扎囊县| 东乌珠穆沁旗| 信宜市| 扎赉特旗| 霍邱县| 广安市| 阳泉市| 廊坊市| 枞阳县| 萝北县| 阜平县| 恭城| 辽宁省| 阿瓦提县| 陵水| 汕头市| 宁南县| 缙云县| 呼伦贝尔市| 运城市| 宁河县| 达州市| 磴口县| 洪雅县| 嘉善县| 大姚县| 海伦市| 烟台市| 来宾市| 潮州市| 临夏县| 勃利县| 铁力市|