HTML ¼¼ÇÉ´óÈ«
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5. <link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8. ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
<script language="JavaScript"><!--
if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³
// --></script>
9. ·ÀÖ¹±»ÈËframe
<SCRIPT LANGUAGE=J***ASCRIPT><!--
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>
10. <noscript><iframe src="/*.html>";</iframe></noscript> ÍøÒ³½«²»Äܱ»Áí´æΪ
11. <input type=button value=²é¿´ÍøÒ³Ô´´úÂë
onclick="window.location = ''view-source:''+ ''http://www.csdn.net/''">
12. ÔõÑùͨ¹ýaspµÄÊÖ¶ÎÀ´¼ì²éÀ´·ÃÕßÊÇ·ñÓÃÁË´úÀí
<% if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then
response.write "<font color=#FF0000>Äúͨ¹ýÁË´úÀí·þÎñÆ÷£¬"& _
"ÕæʵµÄIPΪ"&Request.ServerVariables("HTTP_X_FORWARDED_FOR")
end if
%>
13. È¡µÃ¿Ø¼þµÄ¾ø¶ÔλÖÃ
//Javascript
<script language="Javascript">
function getIE(e){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;
}
alert("top="+t+"\nleft="+l);
}
</script>
//VBScript
<script language="VBScript"><!--
function getIE()
dim t,l,a,b
set a=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
while a.tagName<>"BODY"
set a = a.offsetParent
t=t+a.offsetTop
l=l+a.offsetLeft
wend
msgbox "top="&t&chr(13)&"left="&l,64,"µÃµ½¿Ø¼þµÄλÖÃ"
end fu
Ïà¹ØÎĵµ£º
/// <summary>
/// ½Ø¶Ï×Ö·û´®(ÖÐÎļÆÒ»¸ö×Ö·û¿í¶È£¬ÆäËü¼Æ°ë¸ö×Ö·û¿í¶È)
/// </summary>
/// <param name="input">Ðè½Ø¶ÏµÄ×Ö·û´®</param>
/// <param name="length">×Ö·û¿í¶È</pa ......
Ò»¡¢title ÍøÒ³±êÌâ¡£
¶þ¡¢meta±ê¼Ç
˵Ã÷£º<meta>±ê¼Ç±ØÐë·ÅÔÚ<head>Óë</head>Ö®¼ä
¸ù¾ÝHTMLÓïÑÔ±ê×¼×¢ÊÍ£ºmeta±êÇ©ÊǶÔÍøÕ¾·¢Õ¹·Ç³£ÖØÒªµÄ±êÇ©£¬Ëü¿ÉÒÔÓÃÓÚ¼ø±ð×÷Õߣ¬
É趨ҳÃæ¸ñʽ£¬±ê×¢ÄÚÈÝÌáÒªºÍ¹Ø¼ü×Ö£¬ÒÔ¼°Ë¢ÐÂÒ³ÃæµÈµÈ¡£
meta±êÇ©·ÖÁ½´ó²¿·Ö£ºHTTP-EQUIVºÍNAME±äÁ¿¡£
HTTP-EQUIVÀàËÆÓÚHTTPµ ......
×÷Õß:fbysss
msn:jameslastchina@hotmail.com
blog:blog.csdn.net/fbysss
ÉùÃ÷£º±¾ÎÄÓÉfbysssÔ´´£¬×ªÔØÇë×¢Ã÷³ö´¦
¹Ø¼ü×Ö£ºsrcÊôÐÔΪ¿Õ
±³¾°
»ùÓÚSpring MVC¡£
ͬÊÂÔÚ¶ÔÒ»¸öController½øÐÐdebugµÄʱºò£¬·¢ÏÖÒ³ÃæÖ»ÓÐÒ»¸öË¢ÐÂÇëÇ󣬶ø¹«¹²Èë¿Ú·½·¨Öظ´½øÈ ......
¿ÉÒÔ˵¼¸ºõÿ¸ö×ö¹ýWeb¿ª·¢µÄÈ˶¼Îʹý£¬µ½µ×ÔªËصÄIDºÍNameÓÐʲôÇø±ð°¢£¿ÎªÊ²Ã´ÓÐÁËID»¹ÒªÓÐNameÄØ?!
¶øͬÑùÎÒÃÇÒ²¿ÉÒԵõ½×îclassicalµÄ´ð°¸£ºID¾ÍÏñÊÇÒ»¸öÈ˵ÄÉí·ÝÖ¤ºÅÂ룬¶øName¾ÍÏñÊÇËûµÄÃû×Ö£¬IDÏÔÈ»ÊÇΨһµÄ£¬¶øNameÊÇ¿ÉÒÔÖظ´
µÄ¡£
ÉÏÖÜÎÒÒ²Óöµ½ÁËIDºÍNameµÄÎÊÌ⣬ÔÚÒ³ÃæÀïÊäÈëÁËÒ»¸öinput
type= ......