上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 一:删除文件 二:下载图片到本地 三:下载文件到本地 阅读全文
posted @ 2016-09-07 09:20 ws珍惜现在 阅读(172) 评论(0) 推荐(0)
摘要: 一:官方文件 http://lucene.apache.org/core/4_0_0/ ps:网上参考文章:http://www.cnblogs.com/xing901022/p/3933675.html 二:jar包 (1)lucene-core-4.0.0.jar (2)lucene-analy 阅读全文
posted @ 2016-09-05 17:29 ws珍惜现在 阅读(766) 评论(0) 推荐(0)
摘要: 一:datagrid列表 (1)时间:<t:dgCol title="创建时间" field="createtime" width="60" formatter="yyyy-MM-dd hh:mm:ss"></t:dgCol> 注意:这里formatter="yyyy-MM-dd hh:mm:ss" 阅读全文
posted @ 2016-08-26 17:33 ws珍惜现在 阅读(5565) 评论(0) 推荐(0)
摘要: 一:配置环境 本文是在测试demo的基础上写的,服务器包括申请的两台服务器和本机,共三台服务器。demo的目标是实现三台服务器之间共享cache。 申请的两台服务器地址分别是172.19.100.150;172.19.100.151,本机是172.19.100.56。二:配置步骤(1)spring- 阅读全文
posted @ 2016-08-16 15:18 ws珍惜现在 阅读(703) 评论(0) 推荐(0)
摘要: 本文采用拦截器来实现权限拦截。在用户访问相关url时,会检查用户是否已经登录并具有相应访问权限。 一:xml配置文件中拦截器配置 二:拦截器实现 阅读全文
posted @ 2016-07-28 17:47 ws珍惜现在 阅读(3749) 评论(0) 推荐(0)
摘要: 一:web.xml (1)spring mvc的配置 (2)示例 二:spring-mvc.xml的配置 (1)扫描控制器 (1.1)头部beans中加入:xmlns:context="http://www.springframework.org/schema/context" (1.2) <!-- 阅读全文
posted @ 2016-07-28 17:26 ws珍惜现在 阅读(1063) 评论(0) 推荐(0)
摘要: 一:官网 http://kindeditor.net/doc3.php 二:引用 三:功能 (1)上传图片 上传图片需要设置三个初始化参数:uploadJson, fileManagerJson ,allowFileManager 。 var html = editor.html(); $("#co 阅读全文
posted @ 2016-07-27 17:35 ws珍惜现在 阅读(313) 评论(0) 推荐(0)
摘要: 一:$.ajax() (1)在jQuery中$.ajax()方法属于最底层的方法。它的结构为: $.ajax(options) (2)示例 其中,data是后台返回的自定义AjaxJson格式 /** * $.ajax后需要接受的JSON * * @author * */ public class 阅读全文
posted @ 2016-07-21 10:48 ws珍惜现在 阅读(423) 评论(0) 推荐(0)
摘要: 一:插件 (1) Validform_v5.3.1_min.js Validform_Datatype.js (2)网址:http://validform.rjboy.cn 在这个网站上有demo和插件下载链接。 二:普通验证 (1)Validform_Datatype.js (2)Validfor 阅读全文
posted @ 2016-07-21 10:14 ws珍惜现在 阅读(1334) 评论(0) 推荐(1)
摘要: Python中的random模块用于生成随机数。下面介绍一下random模块中最常用的几个函数。random.randomrandom.random()用于生成一个0到1的随机符点数: 0 b,则生成的随机数n: a >> import random>>> random.randint(0,99)21随机选取0到100间的偶数:>>> import random>>> random.randrange(0, 101, 2)42随机浮点数:>>> import random>>> random. 阅读全文
posted @ 2013-11-17 18:42 ws珍惜现在 阅读(377) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页