- 博客(12)
- 资源 (5)
- 收藏
- 关注
转载 在页面写一个倒计时的功能,例如距离2017年还有多久
<html><head><title>倒计时页面</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript">funct
2019-01-16 14:58:40
776
转载 获取web客户端的IP
public static String getIp(final HttpServletRequest request) { String ip = request.getHeader("x-forwarded-for"); if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) ...
2019-01-16 14:57:57
491
原创 javaScript对时间的处理
1.用JS获取特定格式的时间function getdate() { var nowdate = new Date(); //用yyyy-MM-dd HH:mm:ss的格式输出 var year=nowdate.getFullYear();//年 var month =nowdate.getMonth()>9 ? nowdate.getMonth() : "0" + n...
2019-01-16 14:57:39
775
转载 js页面上实现搜索
function searchbrand(obj,value){var fontsNode=obj.find("label");//在js对象中找到label标签if(value==null || value=="") {for(var j=0;j<fontsNode.length; j++){fontsNode[j].parentNode.style.displ...
2019-01-16 14:57:05
1484
原创 将页面列表(<tr><td>)转成json串提交
//将列表转成json串var keysArr = new Array("ansDesc", "score","labelName","labels","ansRemark","createUser","createTimeStr","yn"); function TableToJson(tableid) { //tableid是你要转化的表的
2019-01-16 14:56:04
1380
转载 获得标签名为tagName,类名className的元素数组方法
//获取相同class的数组function getClass(tagName,className) //获得标签名为tagName,类名className的元素{ if(document.getElementsByClassName) //支持这个函数 { return document.getElementsByClassName(className...
2019-01-16 14:55:52
1407
原创 js实现在页面对列表的排序
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD> <TITLE> New Document </TITLE> <script type="text/javascript"> function ieOrFireFox(ob) {
2019-01-16 14:55:18
3528
原创 1.Redis的安装
Window 环境1、进入网站https://github.com/mythz/redis-windows 下载windows版2、根据自己windows系统的位数解压到D:\Redis根目录下。(redis-latest.zip这个压缩包)3、通过cmd进入redis目录下,运行redis-server.exe启动服务,启动成功界面如下4、打开另一个cmd,进入redis目录...
2019-01-16 14:54:38
275
转载 2.redis.conf配置详解
daemonize 是否以后台进程运行,默认为nopidfile 如以后台进程运行,则需指定一个pid,默认为/var/run/redis.pidbind 绑定主机IP,默认值为127.0.0.1(注释)port 监听端口,默认为6379timeout 超时时间,默认为300(秒)loglevel 日志记录等级,有4个可选值,debug,verbose(默认值),notice,...
2019-01-16 14:54:23
450
1
原创 jQuery实现DIV层的收缩展开效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><ti
2019-01-16 14:54:06
5094
转载 JSON字符串转javabean,报net.sf.ezmorph.bean.MorphDynaBean cannot be cast to.....
在json字符串转java bean时,一般的对象,可以直接转,如:一个学生类,属性有姓名、年龄等Java代码 public class Student implements java.io.Serializable{ /** */ private static final long serialVersionUID = -19439...
2019-01-16 14:53:27
5458
原创 遇到 com.lowagie.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.
在利用iText.jar和iTextAsian.jar生成pdf文件时有时遇到了Exception in thread "main" com.lowagie.text.DocumentException: Font 'STSong-Light' with 'UniGB-UCS2-H' is not recognized.at com.lowagie.text.pdf.BaseFont.cr...
2019-01-16 14:52:57
6932
1
pdf开发相关jar包
2017-04-14
生成pdf文件所用到的iTextAsian.jar包
2017-04-14
生成pdf文件所需的jar
2017-04-14
生成pdf文件所用的iText.jar
2017-04-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人