- 博客(23)
- 收藏
- 关注
转载 鼠标滑过变成小手
style="cursor:pointer;" 转载于:https://my.oschina.net/u/3502029/blog/3007893
2019-01-31 17:00:00
999
转载 点击div全屏显示,再次点击取消全屏
<div id="demo"> 测试</div> <script> var status = 1; (function () { var viewFullScreen = doc...
2018-12-29 16:06:00
1408
转载 jqGrid+post+json
<table id="grid-table"></table><div id="grid-pager"></div> jaGrid默认GET请求,改成POST加JSON字符串形式分页。 1、 contentType指定为json :aja...
2018-11-27 17:02:00
439
转载 Jquery增加行和删除行
1、input自动填充td并去掉边框,实现可编辑 2、序号自动+1 3、选中多选框,点击删除行按钮,删除所选中的行 4、增加行在table尾部追加 html代码如下: <table class="table" id="table"> <tr > ...
2018-10-26 09:54:00
457
转载 jqury遍历table获取td内input的值
jqury遍历table获取td内input的值,并封装成一个数组对象。 infoTable 为table的id。 function getTableContent(el){ var entity = []; $("#infoTable").find("tr").each(f...
2018-10-16 16:26:00
677
转载 JS获取url参数
function getQueryVariable(variable){ var query = window.location.search.substring(1); var vars = query.split("&"); fo...
2018-09-12 14:59:00
80
转载 jqGrid 批量取消(删除)所选记录
<div class="jqGrid_wrapper"> <table id="pro_table"></table> <div id="page_list"></div> </...
2018-08-31 10:57:00
257
转载 读取properties文件
db.properties在classes目录下。 public static void main(String[] args) { Properties prop = new Properties(); try { prop.load...
2018-07-24 11:38:00
92
转载 [转]解决shiro:There is no session with id
解决org.apache.shiro.session.UnknownSessionException: There is no session with id的问题 只所以出现这个问题是因为在shiro的DefaultWebSessionManager类中,默认Cookie名称是J...
2018-06-15 10:33:00
1660
转载 spring事务管理
在企业级应用中,多用户访问数据库是常见的场景,这就是所谓的事务的并发。事务并发所可能存在的问题: 1.脏读: 针对未提交的数据,一个事务读到另一个事务未提交的数据。 2.不可重复读:针对本身修改的数据,一个事务两次读同一行数据,可是这两次读到的数据不一样。 3.幻读:体现在新增数据和删除数据...
2018-06-12 15:06:00
80
转载 java判断字符串中是否含有特殊字符
/** * * @return true为包含,false为不包含 */ public boolean stringFilter(String str) { String regex = "[ _`~!@#$%^&*()+=|{}':;',\\[\\].<&g...
2018-05-25 11:12:00
3513
转载 maven搭建SSM+shiro+ehcache(demo)
1、新建maven项目 参考:https://blog.youkuaiyun.com/haishu_zheng/article/details/51490299 2、在pom.xml 添加依赖包 <project xmlns="http://maven.apache.org/POM/4...
2018-05-15 09:49:00
297
转载 shiro报错There is no session with id [xxx]
shiro报错There is no session with id [xxx] <bean id="sessionManager" class="org.apache.shiro.web.session.mgt.DefaultWebSessionManager">...
2018-05-15 09:15:00
421
转载 js 把 json传递的日期(一串数字)转换成日期格式
1、先把字符串进行日期的封装 var date = new Date(1403149534); 2、然后引入一下代码 Date.prototype.Format = function(fmt) { //author:wangweizhen var o = { "M...
2018-04-13 15:38:00
1193
转载 maven pom.xml报错:CoreException: Could not get the value for parameter compilerId for plugin execution...
1、找到maven的 plexus-compiler-api 文件夹 2、删除plexus-compiler-api 文件夹下的 2.2文件夹 3、在项目中pom.xml空白区,随便输入,然后删除,等自动更新完成。 ...
2018-04-13 09:43:00
344
转载 通过request获取请求路径的不同方法的区别
通过request获取请求路径的不同方法的区别 1、request.getRequestURL() 返回的是完整的url,包括Http协议,端口号,servlet名字和映射路径,但它不包含请求参数。 2、request.getRequestURI() 得到的是request URL的部分...
2018-04-03 15:14:00
203
转载 js获取当前日期和昨天日期(年月日)
前端开发中有时候需要获得当前日期显示在页面上,直接调用下面的js方法就可以获得当前的日期: 1 2 3 4 5 6 7 8 9 10 functiontimenow(){ vartimenow=newDate(); ...
2018-03-21 11:20:00
2244
转载 ajax和json 前后端(入门)
一:ajax请求 $.post( //或get 'url',//请求地址 { "id":id, "name":name, },//传输的参数 function(data) {//服务器返回的数据 ...
2018-03-09 11:30:00
123
转载 Spring Aop 实例
1、概念术语 在开始之前,需要理解Spring aop 的一些基本的概念术语(总结的个人理解,并非Spring官方定义): 切面(aspect):用来切插业务方法的类。 连接点(joinpoint):是切面类和业务类的连接点,其实就是封装了业务方法的一些基本属性,作为通知的参...
2018-03-08 15:51:00
81
转载 input和select高度对齐
1、.INPUT和图片按钮对齐: <form method="post" action="ccc.asp"> <input type="text" name="title" onfocus="this.value=''" value="请输入单词"> ...
2018-03-08 10:53:00
784
转载 cookie操作
//获取cookie function getCookie(name){ var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document...
2018-03-08 10:45:00
64
转载 在页面获取url参数
当一个url过来时,如:http://localhost:8080/demo/hello.jsp?name=jack, 因为使用jstl时,url请求参数被放置到隐含对象param中 ,那么: <input type="hidden" id="aa" value="${param.na...
2018-03-08 10:36:00
107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人