
JavaScript
酷酷的小鱼
年轻没有失败
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JavaScript中 日期的计算
1.计算当前日期+N天后的日期function CurrentDateAddDay(n){ var s, d, t, t2; t = new Date().getTime(); t2 = n * 1000 * 3600 * 24; t+= t2; d = new Date(t); s = d.getUTCFullYear() + "-";原创 2013-07-05 21:22:34 · 349 阅读 · 0 评论 -
window.location.Reload()和window.location.href 区别
首先介绍两个方法的语法:reload 方法,该方法强迫浏览器刷新当前页面。语法:location.reload([bForceGet])参数: bForceGet, 可选参数, 默认为 false,从客户端缓存里取当前页。 true, 则以GET 方式,从服务端取最新的页面, 相当于客户端点击 F5("刷新")replace 方法,该方法通过指定URL替换当前缓存在历史里(转载 2013-08-14 16:20:31 · 306 阅读 · 0 评论 -
几个很有用的 jQuery 技巧
1) 禁用鼠标右键点击If you want to save your sites information from users, developers should use this code for disable Right clicking functionality. Using this code, jquery programmers can deactivate right原创 2014-03-13 14:29:33 · 388 阅读 · 0 评论