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

JavaScript±È½ÏÁ½¸öÊý×éÏàµÈ

javascriptÊDz»ÄÜÖ±½Ó±È½ÏÁ½¸öÊý×éÊÇ·ñÏàµÈµÄ¡£ÀýÈ磺
var a = [1,2,3];
var b = [1,2,3];
alert(a == b);     // false
½á¹ûÊÇ false. Ö¤Ã÷Á½¸öÊý×é²»ÄÜÖ±½Ó±È½ÏÏàµÈ¡£
½â¾ö·½·¨Ò»£º
ÏÈÅÅÐò£¬ÔÙÀûÓÃtoString·½·¨£¬±È½Ï¡£ÀýÈ磺
var a = [1,2,3];
var b = [1,2,3];
alert(a.sort().toString() == b.sort().toString());
½á¹ûΪtrue
½â¾ö·½·¨¶þ£º
Ö±½ÓtoString() ±È½ÏÒ²ÊÇ¿ÉÒԵġ£


Ïà¹ØÎĵµ£º

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 ......

IEÓëFirefoxÔÚJavaScriptÉϵÄ7¸ö²»Í¬¾ä·¨

 
¾¡¹ÜÄÇÐèÒªÓó¤´®µÄ¡¢³ÁÃÆµÄ²»Í¬·ÖÖ§´úÂëÀ´Ó¦¸¶²»Í¬ä¯ÀÀÆ÷µÄÈÕ×ÓÒѾ­¹ýÈ¥£¬Å¼¶û»¹ÊÇÓбØÒª×öһЩ¼òµ¥µÄÇø·ÖºÍÄ¿±ê¼ì²âÀ´È·±£Ä³¿é´úÂëÄÜÔÚÓû§µÄ»úÆ÷ÉÏÕý³£ÔËÐС£ÔÚÕâÆªÎÄÕÂÖУ¬×÷Õß½éÉÜÁË7¸öÔÚIEºÍFirefoxÖв»Í¬µÄJavaScript¾ä·¨¡£
1. CSS "float" Öµ
·ÃÎÊÒ»¸ö¸ø¶¨CSS ÖµµÄ×î»ù±¾¾ä·¨ÊÇ£ºobject.styl ......

JavaScript±íµ¥ÑéÖ¤´óÈ«£¨Èý£©


/*
JavaScript½Å±¾£¬ÑéÖ¤±íµ¥ÖеÄÊý¾ÝÏî begin
-------------------------------------------------------------------------------
*/
function checkForm(objFrm){
var len = 0;
len = objFrm.elements.length;
var i = 0;
var objCheck;
//Îı¾¿ò
for(i = 0; i < len; i ++){
objCheck = objF ......

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 ......

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" ²»×¼Õ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ