03 2012 档案

摘要:View Code 1 <script type="text/javascript"> 2 window.onbeforeunload=function() 3 { 4 alert("onbeforeunload event..."); 5 //return false; 6 } 7 </script> 8 <a href="#" onclick="return true;">测试1</a><br/> 9 <a href="javascri 阅读全文
posted @ 2012-03-25 08:39 德赛克巴莱 阅读(773) 评论(0) 推荐(0)
摘要:How to Reference and Use JSTL in your Web ApplicationAs a frequent contributor to the Spring Framework user forums, I have noticed a common trend among people new to Spring MVC – they really don’t understand how to use JSTL and EL in their Spring-driven JSPs.Although Spring MVC supports flexibility 阅读全文
posted @ 2012-03-21 09:38 德赛克巴莱 阅读(591) 评论(0) 推荐(0)
摘要:通过配置文件建立Java对象,是一种。。。 阅读全文
posted @ 2012-03-08 13:35 德赛克巴莱 阅读(136) 评论(0) 推荐(0)
摘要:在一个项目中,要退出android程序,试了restartPackage、 killBackgroundProcesses 、通过异常并在Application的子类中重新注册Thread的 Thread.UncaughtExceptionHandler接口+异常方式,等等,都没有效果。最后发现其实只要在从一个activity A 跳到另一个activity B 时,调用了A的finish方法,程序就能退出,但这样不能实现Back操作了,最后想一个办法:我们为什么不自己控制程序创建的activity呢?比如我们可以把程序创建的avtivity放在一个全局变量里,在退出程序的时候取出每个还存在的 阅读全文
posted @ 2012-03-02 15:13 德赛克巴莱 阅读(417) 评论(0) 推荐(0)