后端 第28页
CSS图片定位属性使用-Ddmit

CSS图片定位属性使用

background-position用来指定背景图片左上角相对于容器元素左上角的位置。 有三种方式来指定background-position的值: 1、可以用top,left,center,right,bottom等值,比如background-position: ...
ddmit的头像-DdmitDdmit6年前
015410
MyEclipse:String literal is not properly closed by a double-quote-Ddmit

MyEclipse:String literal is not properly closed by a double-quote

初学java,经常遇到这个问题”String literal is not properly closed by a double-quote eclipse”,错误的具体表现形式就是中文乱码,解决方法之一就是更改工程的编码方式。首先选择工程,右...
ddmit的头像-DdmitDdmit6年前
018091
推荐一款非常强大的Css框架-Material UI-Ddmit

推荐一款非常强大的Css框架-Material UI

Material UI 是一款功能非常强大,界面却十分清新简洁的CSS框架,Material UI利用了Google的Material Design全新设计语言,并且让每一个UI组件都变得非常独立,因此开发者使用Material UI也会比...
ddmit的头像-DdmitDdmit6年前
024820
Struts2中doubleselect的使用方法-Ddmit

Struts2中doubleselect的使用方法

在Struts2的,<S:doubleselect>标签用于创建两个HTML下拉框,第一个下拉列表中选择后,第二个下拉列表将根据第一个选择发生相应的变化一个非常典型的例子是“国家”,“国家”下拉选项,不...
ddmit的头像-DdmitDdmit6年前
015990
Bootstrap表格搜索功能-Ddmit

Bootstrap表格搜索功能

一个简单的实现bootstrap表格搜索功能的方式,代码如下: html部分 <div class='form-group pull-right'> <input type='text' class='search form-control' placeholder='What you loo...
ddmit的头像-DdmitDdmit6年前
023070
Elasticsearch之Query and Filter context-Ddmit

Elasticsearch之Query and Filter context

查询和过滤上下文(Query and filter context) 在Elasticsearch中,一个查询语句的行为取决于它是使用查询上下文(query context)还是过滤上下文(query context)。 查询上下文(Query context) ...
ddmit的头像-DdmitDdmit6年前
022770
怎么将UTC格式的日期格式化为字符串-Ddmit

怎么将UTC格式的日期格式化为字符串

代码如下: Date.UTC(2015, 11, 1,21,37); >1449005820000 new Date(1449005820000); >Wed Dec 02 2015 05:37:00 GMT+0800 (中国标准时间) new Date(1449005820000).toISOString(). repla...
ddmit的头像-DdmitDdmit6年前
015460
JAVA实现根据属性对list集合进行分组-Ddmit

JAVA实现根据属性对list集合进行分组

使用Java 8对List集合进行分组: Map<String, List<Student>> result = list.stream().collect(Collectors.groupingBy(Student::getAge)); 参考: Group a list of objects by an a...
ddmit的头像-DdmitDdmit6年前
021700
Javascript中如何判断变量是否为undefined/null/blank?-Ddmit

Javascript中如何判断变量是否为undefined/null/blank?

针对Boolean,Null,Undefined,Number,String这5中原始数据类型,可以使用下面的方法判断: if(val){ //Boolean类型为true时,非Null时,非Undefined时,Number类型大于0时,String类型不是空...
ddmit的头像-DdmitDdmit6年前
019050
Mybatis如何将Oracle数据库返回结果转换为驼峰格式-Ddmit

Mybatis如何将Oracle数据库返回结果转换为驼峰格式

有如下几种方式实现: 配置mybatis的mapUnderscoreToCamelCase选项; 定义一个resultMap来实现表字段和结果属性的映射; 使用'AS'关键字指定别名; 前两种方式都需要定义一个实体类,第三种方式...
ddmit的头像-DdmitDdmit6年前
019280