js Ìæ»»html±êÇ©
³£ÓÃÌæ»» JS(trim,ltrim,rtrim)ºÍÌæ»»HTML±êÇ©
http://hi.baidu.com/sunsonruby/blog/item/e1bd76d5cc0efec751da4bc9.html
http://sxpyrgz.javaeye.com/blog/397470
<html>
<head>
<title>ÖйúÕ¾³¤Ìì¿Õ-ÍøÒ³ÌØÐ§-±íµ¥ÌØÐ§-Ö»ÄÜÊäÈëÖÐÎĵÄÎı¾¿ò</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
</head>
<body>
<!--°ÑÏÂÃæ´úÂë¼Óµ½<body>Óë</body>Ö®¼ä-->
Ö»ÄÜÊäÈëÖÐÎĵÄÎı¾¿ò£º<input onkeyup="value=value.replace(/[ -~]/g,'')">
</body>
< /html>
Ïà¹ØÎĵµ£º
HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......
£¼html£¾
£¼head£¾
£¼title£¾±êÌ⣼title£¾
£¼/head£¾
£¼body£¾..........ÎļþÄÚÈÝ..........
£¼/body£¾
£¼/html£¾
1.Îļþ±êÌâ
£¼title£¾..........£¼/title£¾
2.Îļþ¸üÐÂ--£¼meta£¾
¡¾1¡¿10Ãëºó×Ô¶¯¸üÐÂÒ»´Î
£¼meta http-equiv="refresh" content=10£¾
¡¾2¡¿10Ãëºó×Ô¶¯Á¬½áµ½ÁíÒ»Îļþ
£¼meta http-equiv="ref ......
×î³£ÓõÄ×Ö·ûʵÌå
ÏÔʾ½á¹ûÃèÊöʵÌåÃû³ÆÊµÌå±àºÅ
¿Õ¸ñ
 
<
СÓÚºÅ
<
<
>
´óÓÚºÅ
>
>
&
ºÍºÅ
&
&
"
ÒýºÅ
"
"
'
ƲºÅ
' (IE²»Ö§³Ö)
'
ÆäËûһЩ³£ÓõÄ×Ö·ûʵÌå
ÏÔʾ ......
_blank : ÔÚÒ»¸öеģ¬Ã»ÓÐÃüÃûµÄ´°¿ÚÖдò¿ªÖ¸¶¨Îĵµ
_self : ÔÚµ±Ç°´°¿ÚÖдò¿ªÎĵµ
_parent : ÔÚ¸¸´°¿ÚÖдò¿ªÎĵµ£¬µ±Ã»Óи¸´°¿Úʱ£¬_parentÓë_selfÊÇÒ»ÑùµÄ
_top £º ÔÚµ±Ç°´°¿ÚÖдò¿ªÎĵµ£¬²¢ÇÒ´ò¿ªµÄÎ ......