• <progress id="ics96"><track id="ics96"></track></progress>

    <dd id="ics96"><pre id="ics96"></pre></dd>
  • <span id="ics96"><pre id="ics96"></pre></span>
    1. <button id="ics96"></button>
      <dd id="ics96"></dd>

      當前位置:首頁>>編程技術

      jQuery.noConflict 解決沖突問題

      點擊數:17541 更新時間:2014-04-06 15:20:00 來源: 昕竹軒網站設計-返回

      jQuery.noConflict(); 可以解決jQuery庫與其他庫沖突問題。
      var j = jQuery.noConflict();
      j("div p").hide(); // 基于 jQuery 的代碼
      $("content").style.display = "none"; // 基于其他庫的 $() 代碼
      其中,我們可以這么說, jQuery.noConflict(); 取消了  jQuery 效果,并引出了變量
      j 我們可以使用 var j 去,復原指定需要使用  jQuery  標簽。

      就如下面。 var j = jQuery.noConflict(); 產生j變量,替換掉所有 $.extend --$ 變量符號。

      <script type="text/javascript">
      var j = jQuery.noConflict();
      <span style="color:#ff0000;">$</span>(pageInit);
      function pageInit()
      });
        <span style="color:#ff0000;">$</span>('#adechocontent').xheditor(,Outdent,List,Align,Img,Source,Flash,Table,SelectAll,Link,Unlink,);
         
      }
      function insertUpload(arrMsg)
      }
      function submitForm()
      </script>

      // =========================================================

      <script type="text/javascript">
       var j = jQuery.noConflict();
       <span style="color:#ff0000;">j</span>(pageInit);
       function pageInit()
       });
         <span style="color:#ff0000;">j</span>('#adechocontent').xheditor(,Outdent,List,Align,Img,Source,Flash,Table,SelectAll,Link,Unlink,);
          
       }
       function insertUpload(arrMsg)
       
       }
       function submitForm()
       </script>



      廣告位
      【責任編輯:CSW8923 (Top) 返回頁面頂端
      【必備推薦】(Top) 返回頁面頂端
      【精品案例】更多案例展示
      【最新留言】 (Top) 返回頁面頂端
      共有0條評論
      重要提示:
      你設置的聯系郵箱是*: (當有人給你留言回復之時,聯系郵箱可以及時通知你)
      我們建議你填寫正確的郵箱地址,如果你之前填寫郵箱地址是錯誤的可以通過 【修改資料】 來重新設置
      登錄 | 免費注冊 | 忘記密碼 | 郵箱:CSW8923@126.com     服務電話:17895923895   客服QQ:568441621 點擊這里給我發消息
      Copyright © 2014-2015 Htmcss.Com All Rights Reserved  版權所有昕竹軒網站設計 備案號:閩ICP備16024510號-4
      国产日韩Av无码免费一区二区三区_亚洲mm无码在线_国产亚洲中文日本不卡_四虎影视国产精品一区二区
    2. <progress id="ics96"><track id="ics96"></track></progress>

      <dd id="ics96"><pre id="ics96"></pre></dd>
    3. <span id="ics96"><pre id="ics96"></pre></span>
      1. <button id="ics96"></button>
        <dd id="ics96"></dd>
        關閉