2013年1月22日
摘要: http://blog.csdn.net/kkdelta/article/details/5507799 阅读全文
posted @ 2013-01-22 18:35 xiong2012 阅读(477) 评论(0) 推荐(0)
  2013年1月10日
摘要: 工作中,需要给同事在dao层写个方法,写完后,只能用junit测试,如是学习了junit4的使用。先用eclipse引入junit4相关包,然后写个类如下,就行了。public class Test extends TestCase{ private IDiscountDao discountDao; @Override protected void setUp() throws Exception { ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml&quo 阅读全文
posted @ 2013-01-10 09:59 xiong2012 阅读(5358) 评论(0) 推荐(0)
  2012年11月9日
摘要: 情况:在用jquery ajax的时候,在success里边用window.showModalDialog,firefox提示阻止弹出窗口。解决方法:在ajax中加上,async : false ,设置为同步。猜测原因是,如果为异步,弹出窗口不安全,所以被firefox阻止了,如果为同步,会安全一些,所以firefox没有阻止。哈哈。。。。 阅读全文
posted @ 2012-11-09 15:00 xiong2012 阅读(662) 评论(0) 推荐(0)
  2012年8月23日
摘要: http://www.2cto.com/kf/201207/144881.html 阅读全文
posted @ 2012-08-23 16:51 xiong2012 阅读(121) 评论(0) 推荐(0)
  2012年6月13日
摘要: http://blog.csdn.net/fenglibing/article/details/6845159建议手动在cmd中生成,命令java -jar ibator2.jar -configfile ibatorConfig.xml。eclipse插件下载地址。http://people.apache.org/builds/ibatis/ibator/ 阅读全文
posted @ 2012-06-13 13:36 xiong2012 阅读(187) 评论(0) 推荐(0)
  2012年5月31日
摘要: http://www.blogjava.net/TrampleSoul/articles/166215.html 阅读全文
posted @ 2012-05-31 13:25 xiong2012 阅读(127) 评论(0) 推荐(0)
  2012年5月29日
摘要: PostgreSQL 中的递归查询,2种方法:1、用with decursiveWITH RECURSIVE d AS (SELECT d1.id,d1.parent_id,d1.caption FROM course_types d1 where d1.dr = 0 and d1.id='typeId' union ALL SELECT d2.id,d2.parent_id,d2.caption FROM course_types d2, d WHERE d2.dr = 0 and d2.parent_id = d.id) SELECT * FROM d其中typeId 是初 阅读全文
posted @ 2012-05-29 12:50 xiong2012 阅读(1768) 评论(1) 推荐(0)
摘要: 1、可以<a href="javascript:void(0);" onclick="xxfunction()"></a>2、可以<a href="javascript:;" onclick="xxfunction()"></a>3、可以<a href="javascript:xxfunction();"></a> 阅读全文
posted @ 2012-05-29 12:37 xiong2012 阅读(1761) 评论(0) 推荐(0)
摘要: oracle 是 select * from v$sessionpostgresql 是 select * from pg_stat_activitymysql 是 show full processlist 阅读全文
posted @ 2012-05-29 12:31 xiong2012 阅读(150) 评论(0) 推荐(0)
摘要: 有一天,在写js的时候,发现[]、{}的区别[] 是表示 数组,{}是表示对象[] 的新增是push 方法{}的新增是 object.elemt 或者 object["element"]还有jquery中的ajax方法中的参数data 支持{} ,平常我们都喜欢用一个拼的老长的字符串作参。 阅读全文
posted @ 2012-05-29 12:27 xiong2012 阅读(251) 评论(0) 推荐(0)