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

javascript »º´æϵͳ

Ä£·ÂjQuery£¬Éè¼ÆÁËÒ»¸ö»º´æϵͳ¡£ÏñjQuery.dataÕâÑùµÄ¶«Î÷£¬PrototypeÓëmootoolsÒ²ÓУ¬Ä¿µÄ¶¼ÊÇÓÃÀ´¸¨Öúʼþϵͳ£¬ÓÃÀ´»º´æÆäÖÐÉú³ÉµÄÊý¾Ý£¬¶ø·Ç»º´æÆÕͨº¯ÊýÉϴμÆËãµÄ½á¹û¡£PrototypeÀûÓÃÁËËüµÄHashÀ࣬mootoolsûϸ¿´£¬ËüÄÚ²¿ºÃÏñÓÃÀ´»º´æuuid¡£Ò»¸ö¹²Ê¶ÊÇ£¬ÎªÒ³ÃæÓõ½µÄÔªËØÉèÖÃuuid·Ç³£ÓÐÓã¬Òª²éÕÒÔªËØʱ£¬¿ÉÒÔ±ÜÃâÖظ´²éÕÒ£¬Ò²¿ÉÒÔÓÃÓÚÓëʼþ»Øµ÷º¯ÊýÏà°ó¶¨¡£ÓÉÓÚuuidÄ¿Ç°Ö»ÓÐIEÖ§³Ö£¬Ëü½Ð×öuniqueID£¬¸ñʽΪms__id\d+£¬ºóÃæµÄÊý×ÖÒ²ÓÐÃûÌ㬽Ð×öuniqueNumber¡£jQueryÄǸöËãÊÇuniqueNumber°É£¬¶øÇÒËüµÄ»º´æϵͳ·Ç³£¸´ÔÓ£¬Ö§³Ö»º´æµ¥¸öÊý¾Ý£¨ÀûÓÃdataÕâ¸ö¶Áд·½·¨£©ÓëÒ»×éÊý¾Ý£¨ÀûÓÃqueue£¬É¾³ýÓÃdequeue£©¡£Ã»°ì·¨£¬ÒòΪËüÊÇ°×ÊÖÆð¼Ò£¬Ã»ÓÐÏñPrototypeÄÇÑùÀûÓÃÒ»¸ö×Ô¶¨Êý¾ÝÀàÐÍ·Öµ£Ò»ÏÂÖ°Ôð¡£ÊÇʱºò½øÈëÕýÌ⣬˵һÏÂÎҵĻº´æϵͳÁË¡£ËüÀûÓõ½Îҵij¬¼¶Êý×é¶ÔÏó£¬ÊµÏÖÏñqueueÓëdequeue¡£µ«Îҵij¬¼¶Êý×é¶ÔÏóÄÜ×öµÄʸü¶à£¬Ïñfilter£¬forEach£¬map£¬reduce£¬one£¬toObject£¬contains£¬removeµÈÒ»Ó¦¾ãÈ«¡£
dom.eventTypes = dom.array(String("abort blur change click contextmenu \
dblclick error focus keydown keypress keyup load mousedown \
mouseenter mouseup mouseleave mousemove mouseover mouseout \
reset resize select submit unload").match(/\w+/g));
//******************************»º´æϵͳ***********************
dom.mixin({
uuid : 0,
storage: {},
buildCache:function(item){
var key,cache = dom.storage;
//Èç¹ûÊÇwindow
if ( item.setInterval && ( item !== window && !item.frameElement )) {
key = "dom-window"
}else if(item.nodeType){
if(!item.uuid){
item.uuid = "dom" + dom.uuid++
dom.cache("uuid","uuid-set",item);//±£´æÔªËصÄÒýÓÃ
}//Èç¹ûµ±Ç°ÔªËØûÓÐuuidÕâÊôÐÔ£¬ÄÇôΪËüÌí¼ÓÒ»¸ö
key = item.uuid
}else if(dom.isString(item)){
key = item;
}else{
throw "item must be element node ,window or string"
}
if(!


Ïà¹ØÎĵµ£º

²âÊÔ¼¸ÖÖÅÅÐòËã·¨µÄjavascriptʵÏÖ¼°Ð§ÄܲâÊÔ

ÓÃÀ´ÅÅÐò¶ÔÏñÊý×éµÄ. ×îºó»¹ÊǾö¶¨ÓÃArray¶ÔÏñµÄsort·½·¨£¬¾¡¹ÜÕâЩ¶¼Ã»ÓÃÉÏ£¬»¹ÊÇ×Ô¼º¼ÇÔÚ¿Õ¼äÀïµ±±Ê¼ÇÓõÄ.
¿ìËÙÅÅÐò£¬ÓÅ»¯µÄ¿ìËÙÅÅÐò£¬ÍüÁËÃû×ÓµÄÅÅÐò·½·¨£¬¶ÔÏñÌṩµÄÅÅÐò;  ¾ø¶Ô²»ÒªÓÃÆðÅÝ·¨£¬³ý·ÇÊǽÌѧÉú¡£
ΪÁ˲âÊÔ£¬Ð´ÁËÒ»¸öÉú³ÉËæ»ú¶ÔÏñµÄ·½·¨£¬ÓÃÀ´Éú³ÉÒ»¸ö¶ÔÏñ£¬¶ÔÏñÖÐÓÐÒ»¸öÊôÐÔ a £¬a µÄֵΪһ¸öËæ»úÊ ......

javascript ä¯ÀÀÆ÷Ò³ÃæÌøת

    if (elename.equalsIgnoreCase("back") || elename.equalsIgnoreCase("1"))
            return "<a href=\"javascript:window.history.back()\">ºóÍË</a>";
      &nbs ......

ECMA ÍƳö JavaScript 5

ECMA ±¾ÖÜÍƳöÁË JavaScript 5£¨PDF£©£¬³ýÁËÔöÇ¿»ù´¡º¯Êý¿âÖ®Í⣬»¹ÒýÈëÁËÑϸñÔËÐÐʱģʽ£¨Strict Runtime Modes£©ÒÔ±ÜÃâ´úÂëÖеij£¼û´íÎó¡£ECMA ECMAScript 4 µÄŬÁ¦ÔøÒÔʧ°Ü¸æÖÕ£¬ECMA ÉõÖÁûÓз¢²¼ ECMAScript 4 ϸÔò¡£
¹ýÈ¥¼¸Ä꣬ÖîÈç Nitro£¬TraceMonkey Ò»ÀàµÄ JavaScript ÒýÇ淢չѸÃÍ£¬JavaScript ³ÉÁË Google Wa ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ