自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

sun

心诚则灵

  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 Promise/Deferred模式

2009年,CommonJS出土了Promise/Deferred模式,这里主要介绍其中Promises/A模型。在以前异步编程中,必须先预定事件的执行流程,而Promise/Deferred模式解决了‘先执行异步调用,延迟传递处理’这样的问题。其实这种模式最早出现于Dojo中。promise 对象有一个then方法,用来存储三种状态(未完成,已完成,失败)的回调函数def

2016-11-12 21:57:45 1047

原创 javascript利用arguments实现方法重载机制

javascript支持方法的重写,但是没有方法重载机制,那么可以模仿重载机制吗?答案是肯定的。(在这里补充一下重写和重载的区别,笔者曾几何时一度混淆。重写是子类覆盖父类的方法,方法名/参数列表/函数返回类型 必须相同;重载是同一个类中多个方法实现,方法名必须相同,参数列表必须不同,返回类型可以不同 )利用全局变量arguments可以实现,arguments是数组,通过判断传入参数的长度

2015-05-06 09:57:29 2395 3

原创 Kendo UI:Grid中单元格为下拉框/时间控件等

问题Grid中如何自定义单元格input框的类型,如下拉框,时间控件等?解决方案通过editor选项设置,如下拉框类型(以ComboBox为例){ field: "pageLayoutTemplateId", title: "布局模板*", width: 100,

2014-11-27 17:18:13 6163

原创 Kendo UI:Grid自定义command实现对行数据的操作

问题Grid中如何自定义操作列?解决方案通过click选项设置,如{ name: "details", click: function(e) { var tr = $(e.target).closest("tr"); // get the current table row (tr) var dat

2014-11-27 15:06:45 9035

原创 Kendo UI:Grid中标题css样式设置

问题Grid表格的标题样式怎么设置?解决方案使用headerAttributes属性设置,如果有css中class属性,需要加双引号””.如{ field: "name", headerAttributes: { "class": "table-header-cell", style: "text-align: right; font-s

2014-11-27 15:05:43 10490

原创 Kendo UI:Grid中单元格样式控制

问题Grid某个单元格的样式怎么设置?解决方案使用attributes属性设置,如果有css中class属性,需要加双引号””.如{ field: "name", title: "Name", attributes: { "class": "table-cell", style: "text-align: right; f

2014-11-27 15:02:57 8436 3

原创 Kendo UI:Grid中单元格日期格式化

Grid中怎么格式化时间类型数据?解决方案(1)使用format格式化             { field: "updateTime", title: "更新时间", width: 200, format: "{0: yyyy-MM-dd HH:mm:ss}"

2014-11-27 15:00:09 9473

原创 Kendo UI:Grid中单元格的数据源的设置-field选择域的问题

问题Grid中数据如果不显示model中field值,怎么设置?解决方案使用kendotemplate: # if(domainInfoNames) {# #:domainInfoNames# # }else{ # 无 #}#{field: "domainInfoIds",title: "页面组",width: 2

2014-11-27 14:57:02 3902

原创 KendoUI:Grid控件的使用

1.创建和基本选项配置有两种创建grid的方式,我这里使用已存在的html div标签,然后再将div元素kendo化.$(function(){ $('#grid') .kendoGrid({ dataSource : dataSource, //数据源加载 pageable : { //分页信息选项设置 input :

2014-11-27 14:27:01 14002 3

原创 using thymeleaf 之 th:each迭代循环

th:each属性用于迭代循环,语法:th:each="obj:${objLis}"

2014-11-02 15:49:32 131021 7

原创 using thymeleaf之十一内联

11 thymeleaf内联语法内联使用属性th:inline来设置,

2014-10-20 14:07:38 7508

原创 using thymeleaf之十模板注释

10 注释10.1 标准html/xnl注释

2014-10-20 13:59:22 6113

原创 using thymeleaf之九属性优先级

9 th:* 属性优先级

2014-10-20 13:41:22 1167 1

原创 using thymeleaf之八th:with定义局部变量

8 定义布局变量th:with属性的用法

2014-10-20 13:27:54 9982

原创 using thymeleaf之七设置属性的值(th:attr/th:value/th:alt-title/th:attrappend/th:attrprepend/th:checked)

7.1 th:attr用于设置其他属性的值,但不是所有属性的值都能设置,如text。

2014-10-18 20:44:48 24006 1

原创 using thymeleaf之六th:text/th:utext属性

6.1 th:text属性l可对表达式或变量求值,并将结果显示在其被包含的 html 标签体内替换原有html文本l文本链接: l用“+”符号,若是变量表达式也可以用“|”符号

2014-10-18 20:35:59 15914 3

原创 using thymeleaf之四操作符

4.1算术操作符+, -, *, /, %e.g.+:1+1.-: 2-1.*:2*3./: 9/4.%:9%4.

2014-10-18 20:23:47 3589

原创 using thymeleaf之五条件表达式

5.条件表达式e.g.1.

2014-10-18 20:22:59 7952

原创 using thymeleaf之三文字

3.文字3.1 文本......3.2 数字The year is 1492.In two years, it will be 1494.3.3 布尔值:true,false3.4 null:null3.5 文字符号:one, sometext, main,…

2014-10-18 20:19:29 1427 2

原创 using thymeleaf之二简单表达式

2 thymeleaf标准方言2.1简单表达式

2014-10-18 19:14:05 4052

原创 using thymeleaf之一thymeleaf认识

首先,介绍一下什么是thymeleaf。thymeleaf是基于

2014-10-18 18:53:59 2918

thymeleaf使用教程

基于java的支持xml/xhtml/html5的模板引擎技术

2014-11-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除