一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

百宝箱(二)

时间:2008-01-12 编辑:简简单单 来源:一聚教程网

18. 网页不会被缓存
HTM网页



或者
ASP网页
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
PHP网页
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
19. 检查一段字符串是否全由数字组成

20. 获得一个窗口的大小
document.body.clientWidth,document.body.clientHeight
21. 怎么判断是否是字符
if (/[^x00-xff]/g.test(s)) alert("含有汉字");
else alert("全是字符");
22.TEXTAREA自适应文字行数的多少

23. 日期减去天数等于第二个日期

24. 选择了哪一个Radio
>