[转]文本输入框特效大集合
摘要:文本输入框特效大集合1、选中后方可编辑:我会好好学习 你的姓名:2、点击链接后方可编辑: 先点击我哦! 你的姓名:3、输入框从中间输入: 从中间输入:4、输入框变色: 输入框变色:5、输入框只能输入数字(用的是正则表达式): 你的年龄:6、输入框只能输入中文(用的是正则表达式): 你的中文名:7、只能输入英文和数字(用的是正则表达式):你的昵称:8、输入框不能编辑,但表单可以获得输入框内的值: 总和: 总和:9、输入框禁止输入法:
阅读全文
posted @
2013-09-17 12:18
new PersonBean()
阅读(197)
推荐(0)
jquery操作select
摘要:jQuery获取Select选择的Text和Value: 1. var checkText=jQuery("#select_id").find("option:selected").text(); //获取Select选择的Text 2. var checkValue=jQuery("#select_id").val(); //获取Select选择的option Value 3. var checkIndex=jQuery("#select_id ").get(0).selectedIndex; //获取Selec
阅读全文
posted @
2013-09-17 10:29
new PersonBean()
阅读(215)
推荐(0)
HashMap和Hashtable的区别
摘要:1 HashMap不是线程安全的 hastmap是一个接口 是map接口的子接口,是将键映射到值的对象,其中键和值都是对象,并且不能包含重复键,但可以包含重复值。HashMap允许null key和null value,而hashtable不允许。2 HashTable是线程安全的一个Collection。HashMap是Hashtable的轻量级实现(非线程安全的实现),他们都完成了Map接口,主要区别在于HashMap允许空(null)键值(key),由于非线程安全,效率上可能高于Hashtable。HashMap允许将null作为一个entry的key或者value,而Hashtable
阅读全文
posted @
2013-09-16 23:35
new PersonBean()
阅读(163)
推荐(0)
Struts2+Spring+hibernate最新版本官方下载地址
摘要:Struts2-2.3.15.1:http://mirrors.cnnic.cn/apache//struts/binaries/struts-2.3.15.1-all.zipSpring-3.3.0:http://repo.springsource.org/libs-milestone-local/org/springframework/spring/4.0.0.M3/spring-framework-4.0.0.M3-dist.zipHibernate-4.2.4:http://ncu.dl.sourceforge.net/project/hibernate/hibernate4/4.2.
阅读全文
posted @
2013-09-12 10:39
new PersonBean()
阅读(434)
推荐(0)
Java - Mysql 乱码
摘要:解决方法一:(最重要的一种方法) 你看下my.ini,有无 [mysql]default-character-set=utf8[client] default-character-set=utf8[mysqld] default-character-set=utf8 然后建立表时,也要用(比如) DROP TABLE IF EXISTS `Company`; CREATE TABLE IF NOT EXISTS `Company` ( `Cname` VARCHAR(10) NOT NULL, `Caddr` VARCHAR(100), `Ctel` VARCHAR(16) )ENGIN...
阅读全文
posted @
2013-09-06 10:59
new PersonBean()
阅读(510)
推荐(0)
Java读取url
摘要:public String read(String urlString){ try { StringBuffer html = new StringBuffer(); URL url = new URL(urlString); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStreamReader inputReader = new InputStreamReader(conn...
阅读全文
posted @
2013-09-06 08:41
new PersonBean()
阅读(322)
推荐(0)
Jsp参数传递
摘要:同一页面a.">b.不同页面: 在action.jsp中:a. b.
阅读全文
posted @
2013-09-03 11:54
new PersonBean()
阅读(212)
推荐(0)