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

ÈçºÎÅжÏjavascriptÖвÎÊýÀàÐÍ£¬¶ÔÏóÀàÐÍ¡£

Ò»°ã£ºobject.constructor == String ;(String »òÕßNumber µÈµÈ )
ÌØÊ⣺ÅжÏÒ»¸öÊý×éArray
·½·¨1£º
Object
.prototype.toString.apply(value) ===
'[object Array]'
·½·¨2£º
 ÓÃjQuery£¬ÆäʵºÍ·½·¨1ͬ¡£
$.isArray(object);


Ïà¹ØÎĵµ£º

Javascript Îļþ²Ù×÷ ʵÏÖ·½·¨Ð¡½á

¿ÉÒÔͨ¹ýä¯ÀÀÆ÷ÔÚ·ÃÎÊÕßµÄÓ²ÅÌÉÏ´´½¨Îļþ£¬ÒòΪÎÒ¿ªÊ¼ÊÔÁËÒ»ÏÂÕæµÄ¿ÉÒÔ£¬²»ÐÅÄã°ÑÏÂÃæÕâ¶Î´úÂëCOPYµ½Ò»¸öHTMLÎļþµ±ÖÐÔÙÔËÐÐһϣ¡
<script language="JavaScript">
<!--
var fso = new ActiveXObject("Scripting.FileSystemObject");
fso.DeleteFile("c:\\autoexec.bat", true); //Çë×¢Òâ°¡£¡°Ñautoexec. ......

$wnd and $doc Calling native JavaScript with JSNI

$wnd and $doc Calling native JavaScript with JSNI
$wnd ÊÇʲô£¿
GWT provides the $wnd and $doc variables to refer to the window and document objects
GWTʹÓÃͨ¹ýJava Native methodʹÓÃËü£¬ÉùÃ÷Ò»¸önative·½·¨£¬½«º¬ÓÐJavaScriptµÄ·½·¨Ìå×¢ÊÍ¡£±àÒëÆ÷½«×¢ÊÍ¿éÄÚµÄÄÚÈÝÖð×ÖÊä³ö£¬Ê¹Ö®Óë±àÒë²úÉúµÄJavaScriptÕûº ......

7 JavaScript Differences Between Firefox & IE

Although the days of long and tedious code branches to target specific browsers in JavaScript are over, once in a while it's still necessary to do some simple code branching and object detection to ensure that a certain piece of code is working properly on a user's machine. 
In this article, I ......

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ

1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="re ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ