經(jīng)典ASP代碼收藏
值得收藏的一些ASP代碼值得收藏的一些ASP代碼
1. oncontextmenu="window.event.returnvalue=false" 將徹底屏蔽鼠標(biāo)右鍵
no |
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
PHP網(wǎng)頁
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
19. 檢查一段字符串是否全由數(shù)字組成
20. 獲得一個窗口的大小
document.body.clientWidth,document.body.clientHeight
21. 怎么判斷是否是字符
if (/[^\x00-\xff]/g.test(s)) alert("含有漢字");
else alert("全是字符");
22.TEXTAREA自適應(yīng)文字行數(shù)的多少
23. 日期減去天數(shù)等于第二個日期
24. 選擇了哪一個Radio
Style
Barcode
25.獲得本頁url的request.servervariables("")集合
Response.Write "
Variables | value |
"&ob&" | "&Request.ServerVariables(ob)&" |
move :移動標(biāo)
crosshair :十字標(biāo)