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 閱讀(744) 評論(0)  編輯  收藏 所屬分類: AJAX 、JavaScript
          主站蜘蛛池模板: 德阳市| 大城县| 南昌县| 大埔区| 钟山县| 双辽市| 阆中市| 九龙城区| 关岭| 翁牛特旗| 海伦市| 武汉市| 方城县| 定安县| 嘉鱼县| 温州市| 花莲县| 太仓市| 定兴县| 华宁县| 福鼎市| 延庆县| 昭平县| 安徽省| 大关县| 宁国市| 岐山县| 瑞安市| 安乡县| 保亭| 平度市| 太白县| 丰宁| 晋州市| 涟水县| 永定县| 莲花县| 惠东县| 新乡市| 澄迈县| 柳江县|