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

javascript ÉèÖÃcookie×¢ÒâÊÂÏî

javascript ÉèÖÃcookie×¢ÒâÊÂÏî
javascript ÉèÖÃcookie×¢ÒâÊÂÏî
ÔÚJavascript ÖУ¬cookie ¿ÉÒÔͨ¹ý document.cookie½øÐÐÉèÖ㬵±ÉèÖöà¸öcookieʱä¯ÀÀÆ÷»á×Ô¶¯°Ñ
ËüÃÇÓ÷ֺŸô¿ª¡£ÈçÏ£º
document.cookie = 'cookie1';
document.cookie ='cookie2';
alert (document.cookie) ;//Êä³ö cookie1 ; cookie2
µ«ÊÇÈç¹û°ÑµÚ¶þ¾ä¸ÄΪ document.cookie +='cookie2';
ÄÇôÔÚIEÖУ¬Êä³öÒÀȻΪcookie1 ; cookie2,µ«ÔÚFFÖУ¬Êä³ö±äΪcookie1 cookie2 £¨¼´·ÖºÅ»á±»È¥µô£©


Ïà¹ØÎĵµ£º

javascript£»Æ´Í¼ÓÎÏ·£¨¿É×ÔѡͼƬºÍÉèÖÃÐÐÁÐÊý£©

˼·£ºä¯ÀÀͼƬ£¬¶ÁÈ¡Æä¿í¶ÈImageW£¬¸ß¶ÈÖµImageH¡£¶ÁÈ¡Óû§ÊäÈëµÄ·Ö³É¼¸ÐÐRow¼¸ÁÐCol¡£
         ÿ¸ö·½¿é£ºboxW=ImageW/Col£»boxH=ImageH/Row£»
         ÔÚ1µ½Row*ColÖÐËæ»ú£¬µÚi¸öͼƬµÄλÖÃÉèΪpos¡¾i¡¿¡£È»ºó¶¯Ì¬´´½¨divÉú³ÉRow* ......

javascriptÖеijÉÔ±º¯Êýµ÷ÓõÄÒ»¸öСÎÊÌâ

Ê×ÏÈ¿´demo´úÂ룺
var student={
name:"leo",
intro:function(){
alert("my name is "+this.name);
}
}
var teacher=function(f){
f();
}
teacher(student.intro); 
ÔÚÉÏÃæµÄdemo£¬¿ÉÒÔ¿´µ½ÏÔʽµÄ¶¨ÒåÁËÒ»¸ö¶ÔÏóstudent£¬ÓÐÒ»¸ö³ÉÔ±º¯ÊýintroºÍÒ»¸ö³ÉÔ±±äÁ¿¡£
ÁíÍⶨÒåÁËÒ»¸öº¯Êýteacher£¬½ÓÊ ......

javascript²Ù×÷xmlÉú³ÉÊ÷Ðβ˵¥

¶ÁÈ¡XMLÎĵµ£»
²ÉÓõݹéÉú³ÉÎÞÏÞ¼¶µÄÊ÷Ðβ˵¥£»
Äܹ»ÏìÓ¦Êó±êʼþ£¬Õ¹¿ªÓë²ðµþ×Ó¼¶²Ëµ¥£»
Ê×ÏÈÊÇÉú³ÉÒ»¸öXMLÎĵµ£¬ÎÒÓõÄÊÇXML SpyµÄ±à¼­Æ÷£»
<?xml version="1.0" encoding="utf-8"?>
       <menu>
         <menu name="Ã÷ ......

JavaScript ÓÃÓÚģʽƥÅäµÄ RegExp ·½·¨

±¾ÆªÈÕÖ¾ÏÈÖ÷ÒªÌÖÂÛ RegExp ¶ÔÏóµÄ²¿·Ö·½·¨£¬RegExp ¶ÔÏó¶¨ÒåÁËÁ½¸öÓÃÓÚģʽƥÅäµÄ·½·¨£¬ËüÃÇÊÇexec()
ºÍtest()
ÏÂÃæÎÒÃÇÖðÒ»½øÐн²½â
¡£ºÇ£¬ºÍÉÏƪÈÕÖ¾Ò»ÑùµÄ½éÉÜ£¬¿´À´Ì×»°£¬¹ûÈ»ÊÊÓÃÓÚ¶à¸ö³¡ºÏ¡£àÅ¡£
exec() ¼ìË÷×Ö·û´®ÖеÄÖ¸¶¨Öµ£¬·µ»ØÖµÊDZ»ÕÒµ½µÄÖµ£¬Èç¹ûûÓз¢ÏÖÆ¥Å䣬Ôò·µ»Ø null£º
Ö÷ÒªµÄRegExpģʽƥÅä·½·¨Ê ......

¡¾PB.NET±à³ÌϵÁÐ6¡¿ÀûÓÃJavaScript½øÐпͻ§¶Ë±à³Ì

¡¾PB.NET±à³ÌϵÁÐ6¡¿ÀûÓÃJavaScript½øÐпͻ§¶Ë±à³Ì
ÆÕͨWEB³ÌÐòÊÇÓÉä¯ÀÀÆ÷·¢³öÇëÇ󣬷þÎñÆ÷ÒÔHTMLÐÎʽ·µ»Ø½á¹û¡£Ò»°ãÇé¿öÏÂÎÒÃÇÔÚPBµÄʼþÀï±àдµÄÈκζԿͻ§¶ËʼþµÄÏìÓ¦´úÂ붼»á²úÉúÒ»´ÎÓë·þÎñÆ÷µÄ½»»¥¹ý³Ì£ºµ±Ò»¸ö¿Í»§¶Ëʼþ±»´¥·¢Ê±£¬JavaScriptÖÐÓÐÒ»¸ö¶ÔÓ¦µÄʼþÈ¥Ïò·þÎñÆ÷·¢ÆðÇëÇ󣬷þÎñÆ÷¶Ë»áµ÷ÓöÔӦʼþµÄ´úÂë² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ