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)  編輯  收藏 所屬分類: AJAXJavaScript
          主站蜘蛛池模板: 上栗县| 盐池县| 禄丰县| 大名县| 扎兰屯市| 弥渡县| 鹤岗市| 瑞丽市| 武威市| 霸州市| 阜宁县| 咸丰县| 商南县| 瑞丽市| 鄂州市| 松原市| 绩溪县| 东海县| 永城市| 浏阳市| 广平县| 屯门区| 宣汉县| 松滋市| 溧阳市| 永善县| 宜君县| 桓台县| 沙田区| 镇康县| 嘉定区| 曲麻莱县| 商城县| 平罗县| 阿瓦提县| 乳山市| 和田市| 巴彦淖尔市| 普兰店市| 永新县| 汝城县|