GWT的jQuery框架 GwtQuery

码农软件 · 软件分类 · AJAX框架/RIA · 2019-03-27 23:42:27

软件介绍

GwtQuery 又被称为gQuery,是一个使用GWT编写的jQuery-like API。允许GWT用在逐步增强的情景下,可能GWT部件过于重量级的地方。它同样可以用来查找和改善你的GWT部件

GwtQuery 对于使用jQuery的开发者来说,易于学习,因为它们共享相同的API,除此之外,gquery增添了很好的特性,比如类型安全的CSS、编译时间最佳化等。

示例代码:

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);
     
}
   
});
}

本文地址:https://codercto.com/soft/d/2306.html

不止情感设计

不止情感设计

陈华 / 电子工业出版社 / 2015-5-21 / 59.00

本书着眼于“设计&心理”两个主要的维度,围绕“创新式思维2.0”(共情—移情—定义—构思—建模—测试)的模式,分析如何“理解一款好的产品设计”、“如何了解用户需求”、“如何从需求来定义产品”的几个步骤,由浅入深地介绍设计师通过洞察和理解用户内在需求来指导产品创新和设计的理念。一起来看看 《不止情感设计》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具