JavaScript ÍøÒ³±³¾°Í¼Æ¬Ëæ»ú»¯
µ¥µ÷µÄÍøÕ¾Ê×Ò³±³¾°¿´¶àÁ˲»ÃâÓÐдÑá·³£¬Èç¹ûÓû§×Ô¼ºÃ¿Ë¢ÐÂÒ»´ÎÒ³Ãæ±³¾°¿ÉÒÔ¸ü»»Ò²ÐíÄÜΪÕâÖÖµ¥µ÷Ìíһ˿µÄÐÂÆæ¡£ÕâÖ»ÐèÓÃÒ»¸öJavaScript·½·¨¾Í¿ÉÒԸ㶨£¬Í¨¹ýËæ»úº¯ÊýÔÚÎÒÃǵÄÒ»×éͼƬÖÐËæ»úµÄÑ¡Ò»ÕÅ×÷Ϊ±³¾°¡£
ÏÂÃæÊÇJavaScript´úÂ룺
view plaincopy to clipboardprint?
<mce:script type="text/javascript"><!--
// Add a class to the body tag to alternate background features
var class_options = new Array( "variation1", "variation2", "variation3" );
if (Math.random) {
var choice = Math.floor(Math.random() * (class_options.length));
// Just in case javascript gets carried away...
choice = ( (choice < class_options.length) && choice >= 0) ? choice : 0;
if (document.body.className == '') {
document.body.className = class_options[choice];
} else {
document.body.className += ' '+class_options[choice];
}
}
-></mce:script>
<mce:script type="text/javascript"><!--
// Add a class to the body tag to alternate background features
var class_options = new Array( "variation1", "variation2", "variation3" );
if (Math.random) {
var choice = Math.floor(Math.random() * (class_options.length));
// Just in case javascript gets carried away...
&nb
Ïà¹ØÎĵµ£º
×¢£ºÔÚÏîÄ¿ÖÐÓöµ½ÀàËƵÄÎÊÌ⣬ͨ¹ýÍøÂç½â¾öÎÊÌâ¡£
parseInt("07") ·µ»Ø¶àÉÙ ?
parseInt("08") ÓÖ·µ»Ø¶àÉÙ ?
ÕýÈ·´ð°¸£º
parseInt("07") ·µ»Ø8
parseInt("08") ·µ»Ø0
ÓÃjavascriptµÄparseIntº¯Êýʱ£¬parseInt("08")»òÕßparseInt("09")·µ»ØµÄ¾ÓÈ»ÊÇ0£¬¶øparseInt("01")...parseInt("07")¶¼ÊÇÕýÈ·µÄ¡£
ΪʲôÕâÑùÄØ£¿
......
ÐÂÎÅÀ´Ô´:tripwiremagazine.com
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ
JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹ÓÃ
Google ËÑË÷³öÅÅÃûÇ° 10 λµ ......
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹Óà Google ËÑË÷³öÅÅÃûÇ° 10 λµÄ JavaScript ¿â£¬²¢¶ÔËüÃÇÖðÒ»½øÐнéÉÜ¡£ ......
ÔÚ×öAJAXÓ¦Óÿª·¢µÄʱºò£¬ÎÒÃÇͨ³£Ï²»¶°Ñ·þÎñÆ÷¶Ë·µ»ØµÄJSON¸ñʽ×Ö·û´®ÔÚ¿Í»§¶ËµÄ»Øµ÷º¯ÊýÖаÑËü×÷ΪJavaScript´úÂëÖ´Ðв¢ÓÃÒ»¸ö±äÁ¿±£´æÆðÀ´£¬ÒÔ·½±ãʹÓ÷µ»ØµÄÊý¾Ý¡£Í¨³£µÄ×ö·¨¾ÍÊÇvar jsonData = eval(xmlHttp.responseText)¡£Õâ¿´ÆðÀ´ËƺõÒ»Çж¼ÊÇÕýÈ·µÄ£¬µ«µ±ÄãÔËÐдúÂëµÄʱºò£¬Äã»á·¢ÏÖ±¨“invalid labe”´ ......