JavaScriptÊý×ÖÑéÖ¤
×¢Òâ:×îºÃ²»ÒªÊ¹ÓÃisNaN()·½·¨,ÒòΪÈç¹ûÒ»¸ö×Ö·ûÊǿոñµÄÇé¿öÏÂ,ËüÒ²»á°ÑËüµ±³ÉÊý×Ö.Äã±ØÐë´¦Àí¿Õ¸ñµÄÎÊÌâÁË.
ºÇºÇ,Æäʵ´¦Àí¿Õ¸ñµÄÎÊÌâÒ²²»ÄÑ,¸ü¼òµ¥µÄ·½·¨´¦ÀíÊý×ÖÎÊÌâÈçÏÂ:
-------------
function isNumber(str){
var mynumber="0123456789";
for(var i=0;i<str.length;i++){
var c=str.charAt(i);
if(mynumber.indexOf(c)==-1){
return false;
}
}
return true;
}
Ïà¹ØÎĵµ£º
JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬Ò×ÓÚÔĶÁºÍ±àд£¬Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚECMA262ÓïÑԹ淶£¨1999-12µÚÈý°æ£©ÖÐJavaScript±à³ÌÓïÑÔµÄÒ»¸ö×Ó¼¯¡£ JSON²ÉÓÃÓë±à³ÌÓïÑÔÎ޹صÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàCÓïÑÔ£¨°üÀ¨C£¬ C++£¬ C#£¬ Java£¬ JavaScript£¬ Perl£¬ PythonµÈ£©µÄϰ¹ß£¬ÕâÐ©ÌØÐ ......
CookiesÊÇÒ»ÖÖÄܹ»ÈÃÍøÕ¾·þÎñÆ÷°ÑÉÙÁ¿Êý¾Ý´¢´æµ½¿Í»§¶ËµÄÓ²ÅÌ»òÄڴ棬»òÊÇ´Ó¿Í»§¶ËµÄÓ²Å̶ÁÈ¡Êý¾ÝµÄÒ»ÖÖ¼¼Êõ¡£CookiesÊǵ±Äãä¯ÀÀÄ³ÍøÕ¾Ê±£¬ÓÉWeb·þÎñÆ÷ÖÃÓÚÄãÓ²ÅÌÉϵÄÒ»¸ö·Ç³£Ð¡µÄÎı¾Îļþ£¬Ëü¿ÉÒԼǼÄãµÄÓû§ID¡¢ÃÜÂë¡¢ä¯ÀÀ¹ýµÄÍøÒ³¡¢Í£ÁôµÄʱ¼äµÈÐÅÏ¢¡£µ±ÄãÔÙ´ÎÀ´µ½¸ÃÍøÕ¾Ê±£¬ÍøÕ¾Í¨¹ý¶ÁÈ¡Cookies£¬µÃÖªÄãµÄÏà¹ØÐÅÏ¢£¬¾Í ......
¹ØÓÚ»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û´°¿Ú´óСµÄÒ»µãµãÑо¿¡£
ÔÚÎÒ±¾µØ²âÊÔµ±ÖУº
ÔÚIE¡¢FireFox¡¢Opera϶¼¿ÉÒÔʹÓÃ
document.body.clientWidth
document.body.clientHeight
¼´¿É»ñµÃ£¬ºÜ¼òµ¥£¬ºÜ·½±ã¡£
¶øÔÚ¹«Ë¾ÏîÄ¿µ±ÖУº
OperaÈÔȻʹÓÃ
document.body.clientWidth
document.body.clientHeight
¿ÉÊÇIEºÍFireFoxÔòʹÓÃ
docu ......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>php°®ºÃÕß|phpfans.net|---ÅжÏÔ¶³ÌͼƬÊÇ·ñ´æÔÚ£¬·ñÔòÌæ»»³ÉĬÈÏͼƬ</title>
</head>
<body>
<p>ÅжÏÔ¶³ÌͼƬÊÇ·ñ´æÔÚ£¬²»´æÔڵĻ°Ìæ»»³ÉĬÈ쵀 ......