- 博客(9)
- 收藏
- 关注
转载 实现侧滑栏
实现水平侧滑,需求需要写一个弹出框水平滑动显示和隐藏,本来用jquery的show()和hide()可惜没有动画效果,后来采用了tranform和transition实现,注意这里不要采用display:none,因为动画会和此属性冲突。 @media (max-width: 767px){...
2016-12-05 15:06:00
100
转载 css position定位
1.position:relative; 如果对一个元素进行相对定位,首先它将出现在它所在的位置上。然后通过设置垂直或水平位置,让这个元素"相对于"它的原始起点进行移动。(再一点,相对定位时,无论是否进行移动,元素仍然占据原来的空间。因此,移动元素会导致它覆盖其他框) 相对定位:relati...
2016-10-09 14:07:00
86
转载 页面不保留js缓存
在head里加上下面代码即可清除页面js缓存 <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta...
2016-07-18 09:00:00
156
转载 JSP自定义标签
JSP自定义标签分2种,1.继承SimpleTagSupport,在后台写输出的代码。2.是直接写tag文件 tag文件 <%@tagpageEncoding="UTF-8"description="树形控件标签"language="java"%> <%@att...
2016-03-31 08:51:00
107
转载 jstree ajax请求加在数据
vartree=$("#tree").jstree({ plugins:['wholerow',"checkbox","types","sort"], core:{ expa...
2016-03-24 10:02:00
138
转载 MyBatis批量操作
//批量插入 //mapper publicvoidinsertUserRoleBatch(List<Map<String,String>>list); //xml <insertid="insertUserRoleBatch"parameterType...
2016-03-24 09:55:00
77
转载 Mybatis自动插入自增id
//id为空的时候,mybatis会自动查询一个id赋值给sysrole <insertid="insertRole"parameterType="sysRole"> <selectKeyresultType="string"order="BEFORE"...
2016-03-24 09:10:00
135
转载 MyBatis的Where条件查询
//Mybatiswhere查询 //mapper的接口如下 publicList<SysRole>findPageList(@Param("role")SysRolesysRole, @Param("...
2016-03-24 09:07:00
452
转载 DataTables的服务器端分页处理
前端代码如下: $.fn.dataTable.ext.errMode=function(){ alert("呃,貌似遇到了一点问题!");//更改获取数据异常的提示 } vartable=$("#sample").dataTable({ info:true, ...
2016-03-24 08:53:00
235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人