10 2012 档案

java 时间日期格式转换。。。分享
摘要:Java时间格式转换大全import java.text.*;import java.util.Calendar;public class VeDate {/** * 获取现在时间 * * @return 返回时间类型 yyyy-MM-dd HH:mm:ss */public static Date getNowDate() { Date currentTime = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateStr... 阅读全文

posted @ 2012-10-23 14:43 juan1206 阅读(287) 评论(0) 推荐(0)

很简单的实现上传图片本地预览
摘要:方法一关键代码:<form action="" method="post" enctype="multipart/form-data" name="form1"><img src=" " name="image" border=0 id="img"/><br /><input name="picture" type="file" id="picture" 阅读全文

posted @ 2012-10-22 15:37 juan1206 阅读(189) 评论(0) 推荐(0)

关于string各种方法
摘要:char charAt(int index) 返回指定索引处的 char 值。 int codePointAt(int index) 返回指定索引处的字符(Unicode 代码点)。 int codePointBefore(int index) 返回指定索引之前的字符(Unicode 代码点)。 int codePointCount(int beginIndex, int endIndex) 返回此 String 的指定文本范围中的 Unicode 代码点数。 int compareTo(String anotherString) 按字典顺序比较两个字符串。 int compareT... 阅读全文

posted @ 2012-10-22 10:01 juan1206 阅读(177) 评论(0) 推荐(0)

使用jquery实现动态添加文本框
摘要:<!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><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文

posted @ 2012-10-18 17:29 juan1206 阅读(747) 评论(0) 推荐(0)

很方便的jsp页面格式化数据类型和日期类型方法
摘要:http://blog.sina.com.cn/s/blog_5b01be8c0100gs9j.html页面介绍了fmt标签的用法。。。。 分享帖。。 阅读全文

posted @ 2012-10-18 11:27 juan1206 阅读(174) 评论(0) 推荐(0)

java.io.CharConversionException: isHexDigit处理
摘要:java.io.CharConversionException: isHexDigit处理java.io.CharConversionException: isHexDigit.最近项目运行出现了这个问题,刚开始就知道是编码问题,怎么改编码都不正确,在网上搜到的文章。如下:下面把解决办法发出来var url = "b.jsp?name=" + escape(u_name);服务端获取:String name=request.getParameter("name");name=new String(name.getBytes("iso-8859- 阅读全文

posted @ 2012-10-16 10:36 juan1206 阅读(1076) 评论(0) 推荐(0)

html-文本域显示输入字数
摘要:<!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><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文

posted @ 2012-10-16 09:25 juan1206 阅读(790) 评论(0) 推荐(0)

文本域输入字数限制
摘要:<!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><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文

posted @ 2012-10-16 09:19 juan1206 阅读(815) 评论(0) 推荐(0)

jsp页面日期显示
摘要:SimpleDateFormat format=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); out.println(format.format(new Date()));显示格式为:2012-10-15 15:06:19 阅读全文

posted @ 2012-10-15 15:13 juan1206 阅读(148) 评论(0) 推荐(0)

导航