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>
Ïà¹ØÎĵµ£º
JSPÊÇÈÝÒ׳öÏÖÂÒÂëÎÊÌ⣬²»¹ýÄãֻҪעÒâÒÔϼ¸µã¾ÍÒ»¶¨Äܸ㶨 ¿É²Î¿¼http://www.historycreator.com/bbs/2009-10/19/033181872.html
1¡¢±£Ö¤ÄãµÄÎı¾±àÂëÓëÄãËùÆÚÍûµÄ±àÂëÏà·û£¨ÓÃд×Ö°å´ò¿ªÄãµÄÒ³ÃæÈ»ºóÎļþÁí´æÎª£¬ÔÚ±àÂëλÖÃÑ¡ÔñÄãÆÚÍûµÄÎı¾±àÂ룬GB2312¶ÔÓ¦ANSI£¬UTF8µ±È»¶ÔÓÚUTF8ÁË£©
2¡¢±£Ö¤´úÂëÀïÃæµÄÉùÃ÷±àÂëÓëÄ ......
1 HTMLÊdz¬Îı¾±ê¼ÇÓïÑÔ£¬ÊÇä¯ÀÀÆ÷µÄ"ĸÓï"£¬ÎÒÃÇËù¿´µ½µÄÍøÒ³¾ÍÊÇä¯ÀÀÆ÷¶ÔHTML½øÐнâÊ͵Ľá¹û¡£¶øXHTMLÊÇ¿ÉÀ©Õ¹³¬Îı¾±ê¼ÇÓïÑÔ£¬ÊÇÒ»ÖÖеĸü¼Ó½á¹¹Á¼ºÃµÄHTMLÓïÑÔ¡£
2¡¢HTMLÖ÷ÒªÊǸ÷ÖÖ¸÷ÑùµÄÔªËØ£¬Ñ§Ï°HTML¾ÍÊÇѧϰʹÓÃÕâÐ©ÔªËØ¡£
3¡¢ÔªËØÒ» ......
=======<html:messages>============
Action ÖÐ :
ActionMessages message = new ActionMessages();
message.add(" ÏûÏ¢¾ä±ú ",new ActionMessage(" ×ÊÔ´ÎļþÖÐ Key Öµ ",String ÀàÐÍÃèÊöÐÅÏ¢ ));
this.addMessages(request,message);
......
ǰÑÔ
×î½ü¹ØÓÚHTML5 ³³µÃ»ðÈÈ£¬ºÜ¶àÈËÈÏΪHTML5³öÏÖ»áÃëɱFlash£¬ÒÔÖÁÓÚÔÚ¸÷´ówebǰ¶Ë¿ª·¢ÂÛ̳³³µÃ²»¿É¿ª½»¡£ÂÛ̳ÀïÈýÑÔÁ½Óï˵µÄ²»¹»¾¡ÐË£¬Ö»ºÃÔÚ×Ô¼ºÒ»Ä¶Èý·ÖµØÀﳨ¿ªÁË˵˵¡£Ò²µ±Ò»´ÎÉñ¹÷£¬Õ¹ÍûÒ»ÏÂwebǰ¶Ë¿ª·¢µÄδÀ´¡£
Ê×ÏÈÕâÀïËù˵µÄHTML5Ò²²»½öÖ¸HTML5±¾Éí£¬¶øÊÇ·ºÖ¸HTML5¡¢CSS3¡¢ JavaScriptÒÔ¼°ÐµÄä¯ÀÀÆ÷APIËù°üº ......
ÔÚWebÓ¦ÓóÌÐòÌØ±ðÊÇWeb2.0³ÌÐò¿ª·¢ÖУ¬¾³£Òª»ñÈ¡Ò³ÃæÖÐij¸öÔªËØ£¬È»ºó¸üиÃÔªËØµÄÑùʽ¡¢ÄÚÈݵȡ£ÈçºÎ»ñȡҪ¸üеÄÔªËØ£¬ÊÇÊ×ÏÈÒª½â¾öµÄÎÊÌâ¡£ÁîÈËÐÀοµÄÊÇ£¬Ê¹ÓÃJavaScript»ñÈ¡½ÚµãµÄ·½·¨ÓкܶàÖÖ£¬ÕâÀï¼òµ¥×öÒ»ÏÂ×ܽᣨÒÔÏ·½·¨ÔÚIE7ºÍFirefox2.0.0.11²âÊÔͨ¹ý£©¡£
1. ͨ¹ý¶¥²ãdocument½Úµã»ñÈ¡£º
(1)document. ......