常做WEB项目,缓存问题难免会遇到,能够找到合适的解决方案才是王道,下面是在下的几种尝试1、在每一页的head中加入如下代码1 2 3 此方法,我试过了,不灵2、在每一个请求URL后,加入时间戳,例window.location.href = contextPath + "/index.action...
分类:
Web程序 时间:
2014-07-16 20:22:47
阅读次数:
156
1.是什么ActionInvocation就是Action的调用者。ActionInvocation在Action的执行过程中,负责Interceptor、Action和Result等一系列元素的调度。理解ActionInvocation你需要对Action的调用过程有一个全面的了解:http://...
分类:
其他好文 时间:
2014-07-16 20:15:13
阅读次数:
161
采用正则表达式获取地址栏参数:function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).m...
分类:
编程语言 时间:
2014-07-16 20:11:22
阅读次数:
208
"window.location.href"、"location.href"是本页面跳转"parent.location.href"是上一层页面跳转"top.location.href"是最外层的页面跳转举例说明:如果A,B,C,D都是jsp,D是C的iframe,C是B的iframe,B是A的if...
jquery ajax jsonp 跨域js端:必须选用get方式,jsonp: "callback", 使用的是默认success 的函数php服务端:接受参数也是$_GET返回json模式: $jsondata = array('translation'=>$result); $_GET['.....
分类:
Web程序 时间:
2014-07-14 09:56:58
阅读次数:
208
微软近期Open的职位:Job posting title: MSIT Dynamics CRM Sr. Dev Lead (Sr. Dev Lead)Location: China, BeijingAre you interested in shaping the future vision of...
分类:
其他好文 时间:
2014-07-13 11:57:52
阅读次数:
327
今天在js代码中加了一句window.location.href(‘url’)希望实现页面的跳转,IE中可以正常使用,但是Firefox却提示window.location is not a function。 google以后将代码改为window.location='url' 程序正常执行...
var result = typeof(null);document.write("typeof null =" + result); // objectdocument.write("");上面result的结果是object var sum = "1" + 2 + 3;document.wri....
分类:
编程语言 时间:
2014-07-13 11:20:05
阅读次数:
209
例子 public bool Save(ProjectModel project) { int Result = 0; SqlConnection Conn = new SqlConnection(SqlHelper.conne...
分类:
其他好文 时间:
2014-07-13 11:17:39
阅读次数:
168
在Linux下执行svn add *时出现如下错误:svn: Valid UTF-8 data(hex: 4b)followed by invalid UTF-8 sequence(hex: fc 63 68 65)出现这个错误是因为svn库里有文件的名字不是utf-8编码的,这种情况对于中文来说很...
分类:
系统相关 时间:
2014-07-13 08:03:13
阅读次数:
324