<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          GwtQueryGWT的jQuery框架

          聯(lián)合創(chuàng)作 · 2023-09-21 17:02

          GwtQuery 又被稱為gQuery,是一個(gè)使用GWT編寫的jQuery-like API。允許GWT用在逐步增強(qiáng)的情景下,可能GWT部件過于重量級(jí)的地方。它同樣可以用來查找和改善你的GWT部件。

          GwtQuery 對(duì)于使用jQuery的開發(fā)者來說,易于學(xué)習(xí),因?yàn)樗鼈児蚕硐嗤腁PI,除此之外,gquery增添了很好的特性,比如類型安全的CSS、編譯時(shí)間最佳化等。

          示例代碼:

          import static com.google.gwt.query.client.GQuery.*;
          import com.google.gwt.query.client.Function;
          
          public void onModuleLoad() {
            //Hide the text and set the width and append an h1 element
            $("#text").hide()
              .css("width", "400px")
              .prepend("<h1>GwtQuery Rocks !</h1>");
              
              //add a click handler on the button
              $("button").click(new Function(){
                public void f() {
                  //display the text with effects and animate its background color
                  $("#text").as(Effects)
                    .clipDown()
                    .animate("backgroundColor: 'yellow'", 500)
                    .delay(1000)
                    .animate("backgroundColor: '#fff'", 1500);
                }
              });
          }
          瀏覽 15
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  亚洲国产视频在线观看 | 91精品国产91久久久无码人妻 | 自拍偷拍激情网 | 黄色一级录像片 | 操狠狠|