Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

µ¥ÒýºÅ,Ë«ÒýºÅ,javascript,HTML,תÒå×Ö·û

ÔÚÒ»¸öÍøÒ³Öеİ´Å¥£¬Ð´onclickʼþµÄ´¦Àí´úÂ룬²»Ð¡ÐÄд³ÉÈçÏ£º
<input value="Test" type="button" onclick="alert(""OK"");" />
IEÌáʾ³ö´íºó£¬ÔÙÂþ²»¾­ÐĵظÄΪ£º
<input value="Test" type="button" onclick="alert(\"OK\");" />
½á¹û»¹Êdzö´í¡£
Õâʱ£¬ÎÒ¾ÍÏ벻ͨÁË£¬ËäÈ»ÎÒÖªµÀ×îÖ±½ÓµÄ½â¾ö·½·¨ÊÇд³ÉÕâÑù£º
<input value="" type="button" onclick="alert('OK');" />
µ«ÎªÊ²Ã´javascriptÖеÄתÒå×Ö·û\ûÓÐЧ¹ûÁËÄØ£¿ ºóÀ´ÕÒµ½Ò»¶ÎÕý³£µÄ´úÂ룺
<input value="Test" type="button" onclick="alert(&quot;OK&quot;);" />
Õâʱ²ÅÀí½â£¬Ô­À´Õâʱ£¬»¹ÊǹéÓÚHTMLµÄ¹ÜϽ·¶Î§£¬ËùÒÔתÒå×Ö·ûÓ¦¸ÃʹÓÃHTMLµÄ£¬¶ø²»ÊÇjavascriptµÄ¡£Á½¸öË«ÒýºÅµÄ×ö·¨ÊÇvbScriptµÄ£¬\"ÕâÖÖ×ö·¨ÔòÊÇjavascriptµÄ£¬¶øHTMLµÄ£¬ÔòÊÇÓÃ&quot;£¬´ËÍ⻹¿ÉÒÔʹÓãº"¡¢'¡£
 
 
HTMLתÒå×Ö·û±í
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û

&#34;
&quot;
&
&#38;
&amp;
<
&#60;
&lt;
>
&#62;
&gt;
²»¶Ï¿ª¿Õ¸ñ(non-breaking space)
&#160;
&nbsp;
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
?
&#161;
&iexcl;
Á
&#193;
&Aacute;
á
&#225;
&aacute;
¡é
&#162;
&cent;
Â
&#194;
&circ;
â
&#226
&acirc;
¡ê
&#163;
&pound;
Ã
&#195;
&Atilde;
ã
&#227;
&atilde;
¤
&#164;
&curren;
Ä
&#196;
&Auml
ä
&#228;
&auml;
£¤
&#165;
&yen;
Å
&#197;
&ring;
å
&#229;
&aring;
|
&#166;
&brvbar;
Æ
&#198;
&AElig;
æ
&#230;
&aelig;
§
&#167;
&sect;
Ç
&#199;
&Ccedil;
ç
&#231;
&ccedil;
¨
&#168;
&uml;
È
&#200;
&Egrave;
è
&#232;
&egrave;
©
&#169;
&copy;
É
&#201;
&Eacute;
é
&#233;
&eacute;
a
&#170;
&ordf;
Ê
&#202;
&


Ïà¹ØÎĵµ£º

ÓÃJavascriptÀ´²Ù×÷Cookie

ÍøÕ¾¾­³£Óõ½µÄÒ»¸ö¶«Î÷ÓÃÀ´ÔÝ´æһЩÏà¹ØÐÅÏ¢µÄCookieÓÐÓŵãÒ²ÓÐȱµã£¬ËüÄܹ»²»Õ¼Ó÷þÎñÆ÷×ÊÔ´£¬´æ´¢ÔÚ¿Í»§¶ËµÄµçÄÔÀ¿ÉÕâÑùÒ²ÓÐÒ»¶¨µÄΣÏÕÐÔ£¬ÒòΪÏà¹ØÐÅÏ¢±ÈÈç˵µÇ¼ij¸öÍøÕ¾µÄÓû§ÃûºÍÃÜÂëÖ®ÀàµÄÐÅÏ¢£¬¶¼»á´æÔÚ¿Í»§¶ËµÄµçÄÔÀÕâÑù»á±»Ä³Ð©“ÓÐÐÄÖ®ÈË”ÀûÓã¬ËùÒÔ£¬ÓÐЩÈËÏ°¹ßÔÚ¹«¹²³¡ºÏʹÓÃÍêµçÄÔºóÇåµôCo ......

HTMLÏÂÀ­²Ëµ¥

Ò»¸ö¼òµ¥µÄÏÂÀ­²Ëµ¥£¬Ö÷Ҫ˵Ã÷CSSÖÐposistionµÄ×÷Óá£
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"& ......

ÓÐ¹Ø JavaScript µÄ 10 ¼þÈÃÈ˷ѽâµÄÊÂÇé

JavaScript ¿ÉËãÊÇÊÀ½çÉÏ×îÁ÷Ðеıà³ÌÓïÑÔ£¬ËüÔø±» Web ¿ª·¢Éè¼ÆʦÌùÉÏجÃεıêÇ©£¬ËäÈ»ÕæÕýµÄجÃÎÆäʵÊÇ DOM
API£¬Õâ¸ö±»´óÁ¿µÄ¿ª·¢ÓëÉè¼ÆʦËæÊÖÄéÀ´ÔöÇ¿ËûÃÇµÄ Web Ç°¶ËµÄ½Å±¾ÓïÑÔ£¬Èç½ñÔ½À´Ô½±»ÖØÊÓ£¬ËäÔòÈç´Ë£¬JavaScript
ÈÔȻӵÓкܶàÈÃÈ˷ѽâµÄ¶«Î÷¡£
1. ËüÒÔ Java ÃüÃû£¬µ«²¢²»ÊÇ Java
Ëü×î³õ½Ð Mocha£¬ ½ÓןÄà ......

Ò»¾ä»°Àí½âjavascript prototypeÊôÐÔ

Õâ¾ä»°ÊÇ£ºprototypeÖж¨ÒåµÄÊǶÔÏóʵÀýÒª·ÃÎʵÄÊôÐÔ»ò·½·¨µÄÒ»¸öÌæ²¹¡£
¾ÙÀý˵Ã÷һϣº
//1£©¶¨ÒåÁËÒ»¸ö¶ÔÏó£º
function A()
{
//¸ø¶ÔÏó¶¨ÒåÒ»¸öÊôÐÔ
this.f1="this is f1";
}
//2£©ÎÒÃÇ¿ÉÒÔÕâÑùʹÓöÔÏó£º
var a = new A();
alert(a.f1)//µ¯³öÏûÏ¢£ºthis is f1
//3£©ÎÒÃÇ¿ÉÒÔÀ©Õ¹¶ÔÏó£º
A.prot ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ