摘要: 这个框架用于做app的接口。 原理跟SpringMVC差不多。 引用redis后,速度快很多。 阅读全文
posted @ 2018-02-06 14:26 感~ 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 1、在新页面中加以下代码: $(function(){ var str = window.location.href; str = str.substring(str.lastIndexOf('/')+1), getCookie = localStorage.getItem(str); if(get 阅读全文
posted @ 2017-11-05 17:29 感~ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1、先用encodeURI("你好")编码变成%A类似的字符; 2、获取值要用encodeURI()解码就是中文了。 阅读全文
posted @ 2017-11-03 10:38 感~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一、布局: 1、北边的布局,一般是查询条件 <div id="north" region="north" border="false" style="height:35x;"> <div> <form id="searchFrom" method="post"> <table> <tr> <td>< 阅读全文
posted @ 2017-10-24 15:25 感~ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 原因就是json数组被序列化了两次,反序列化回来就可以。 JSON数组 jsonarray 是 [object,object] 的形式; 序列化即 : JSON.stringify(jsonarry)就变成了[{"id","2"},{"name","tt"}]这种形式。 反序列化即 : JSON.p 阅读全文
posted @ 2017-09-21 16:21 感~ 阅读(1477) 评论(1) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-08-15 09:58 感~ 阅读(4) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-16 11:42 感~ 阅读(3) 评论(0) 推荐(0) 编辑
摘要: xml的配置: <mapper namespace="com.dao.StudyDao" > <resultMap id="BaseResultMap" type="com.model.Study" > <id column="id" property="sId" jdbcType="INTEGER 阅读全文
posted @ 2017-05-24 09:59 感~ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: var area = data.area;//area的形式是1,2,3, area = area.substring(1,area.length-1);//1,2,3 var arr = new Array(); arr = area.split(","); for(var i=0;i<arr.l 阅读全文
posted @ 2017-03-01 16:47 感~ 阅读(323) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $("#checkAll").click(function() {//全选 $('input[name="DATA"]').prop("checked",this.checked); }); $("input[name='DATA']").each(function(){ 阅读全文
posted @ 2017-03-01 16:41 感~ 阅读(153) 评论(0) 推荐(0) 编辑