̽ÃØIE8µÄÇ¿´óJavaScript¹¦ÄÜ
±¾ÎÄÀ´×Ôhttp://q.yesky.com/group/review-17634017.html£¬ÁíÍ⻹Ìí¼ÓһЩÀïÃæ¼¼ÊõµÄÁ´½Ó¡£
ÀëÏßʼþ(Online and offline events):
https://developer.mozilla.org/En/Online_and_offline_events
https://bug336359.bugzilla.mozilla.org/attachment.cgi?id=220609
http://ejohn.org/blog/offline-events/
postMessage :
http://msdn.microsoft.com/en-us/library/cc197015(VS.85).aspx
http://ejohn.org/blog/postmessage-api-changes/
http://hi.baidu.com/bdui/blog/item/eedf91509c6ab2591038c2fb.html
====================================================================
IE 7ÔÚCSS±à³Ì·½ÃæµÄ¸Ä½ø¸øºÜ¶à¿ª·¢Õß´øÀ´Á˶úĿһеĸоõ£¬µ«ÊÇÔÚJavaScript·½ÃæµÄ±íÏÖÈ´²»¸Ò¹§Î¬£¬Êµ¼ÊÉÏ£¬ÔÚÕâ·½ÃæÎÒÃÇ¿´µ½µÄÖ»ÊÇһЩеÄBUG¡£²»¹ýÐÒÔËÊÇ£¬Î¢ÈíÒѾ¿´µ½ÁËÕâÒ»µã£¬ÔÚIE 8ÖУ¬JavaScriptÒѾ³ÉΪÆ俪·¢µÄÒ»¸öÖص㣬ÏÂÃæÎÒÃǾÍÒ»Æð´Ó¿ª·¢Õ߽ǶÈÀ´¿´Ò»ÏÂIE 8µÄһЩÌص㡣
ÏÂÔØ£ºInternet Explorer 8.0(IE8) ÖÐÎÄ°æ
IE8¿ªÊ¼Ö§³ÖһЩеÄW3C¹æ¸ñ£¬ÆäÖжàÁËquerySelectorºÍquerySelectorAllÁ½¸öº¯Êý¡£querySelectorÊÇCSS selectorµÄ²éÕÒÔÀíµÄÒ»ÖÖ¿ìËÙʵÏÖ·½·¨¡£IE 8Êǵڶþ¸öʵÏÖSelectors APIµÄä¯ÀÀÆ÷£¨ÁíÒ»¸öä¯ÀÀÆ÷ÊÇWebKit£©¡£
¼òµ¥À´Ëµ£¬ËüʵÏֵľÍÊÇjQueryÀïÁîÈ˾ªÑÞµÄCSS Selector¹¦ÄÜ¡£ÀýÈçÒÔϵķ¶Àý£º£¨Ö»ÓÐIE8¿ÉÒÔÅÜ£¬FF¡¢IE7¶¼»á·¢Éú´íÎó£©
InnerSpan
ClassSpan
Õâ¶ùÐèÒªÌرðÖ¸³öµÄÊÇ£¬ÈκÎSelectorsÒªÍêÈ«ÒÀ¿¿ä¯ÀÀÆ÷µÄÔÉúselectorʵÏÖ¡£IE8Ö§³ÖCSS2.1£¬Òò´Ë¿ª·¢ÕßÎÞÐèÔٵȴýCSS 3 selectorsµÄÍƳö¡£
Ö§³Ö¸ü¶àHTML 5¹¦ÄÜ
ÎÒһֱϣÍûÔÚIE 8ÖÐÔö¼ÓһЩHTML 5¼æÈݹ¦ÄÜ£¬ÔÚIE 8ÖÐÎÒÃÇ¿´µ½ÁË4¸öÔÚÕâ·½ÃæµÄÍêÕû¹¦ÄÜ£¬·Ç³£°ô£¡
1¡¢HTML 5: window.location.hash
Õâ¸ö¹¦ÄÜÒѾ±»¶àÊýä¯ÀÀÆ÷Ö§³ÖµÄ·Ç³£ºÃ¡£ÔÚIE8±ê׼ģʽÖн«window.location.hashÖеĸü¸Ä×÷Ϊµ¼º½£¬²¢±£´æÏÈÇ°ÎĵµµÄURL£¬¿ÉÒÔÏñÔÚAjaxÓ¦ÓÃÖÐÄ£·Â“ºóÍË”°´Å¥Ð§¹û¡£IE8ÖжÔËü½øÐÐÁ˸ÄÁ¼£¬¿ÉÒԹ㲥Õâ¸öhashchangedʱ¼ä£¬¾ÝÎÒËùÖªÕâÊǵÚÒ»¸ö²ÉÈ¡ÕâÖÖ´¦Àí·½·¨µÄä¯ÀÀÆ÷¡£
2¡¢HTML 5: DOM´æ´¢
ͨ¹ýÕâ¸ö¹¦ÄÜ£¬Êý¾Ý¿ÉÒÔ³ÖÐø±£´æÔÚ±¾µØ£¬Ëü½«È¡´úÔʼµÄcookie´æ´
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
ÏîÄ¿ÖÐÓöµ½Ò»ÖÖÇé¿ö£¬¿ª·¢µÄÒ³Ãæ»æÖƳöÀ´µÄͼƬ»òÕßµ×ͼ¶¼±È½Ï´ó£¬³¬¹ýÆÁÄ»´óСÐí¶à¡£ÎªÁ˸ÄÉÆʹÓÃÌåÑ飬ÐèÒª¸øÕâÀàÒ³ÃæÌí¼Ó·Å´ó¡¢ËõСÒÔ¼°Æ½ÒƵŦÄÜ¡£¾¹ýÒ»·¬ËÑË÷ºÍ³¢ÊÔ£¬ÊµÏÖÁËÓйع¦ÄÜ£¬±¸ÍüÈçÏ¡£
JavaScript£º
var zoomRate = 20;//ÿ´Î·ÅËõ±ÈÀýÔöÁ¿
var maxRate = 300;//×î´ó·Å´ó±¶Êý
var minRate = 20;//×îС ......
תÔØ×Ô£ºhttp://hikejun.com/blog/?p=536
Zakas 1/22ÔÚtwitterÉÏ·ÖÏíÁËBaranovskiyµÄһƪÎÄÕ“So, you think you know JavaScript?
”£¨ÄãÈÏΪÄã¹»Á˽âjavascriptÂ𣩱êÌâºÜ½Ð°å¡£½á¹û5С¶Î´úÂë×öµÄÏ¡ÀﻩÀ²¡£
½ñÌìZakasרÃÅ׫ÎĽâ´ðÁËÕ⼸µÀÌ⣨http://www.nczonline.net/blog/2010/01/26/answering-baranov ......
netÖÐC#´úÂëÓëjavaScriptº¯ÊýµÄÏ໥µ÷ÓÃÎÊÌâ¡£
¡¡¡¡ÎÊ£º
¡¡¡¡1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
¡¡¡¡2.ÈçºÎÔÚJavaScript·ÃÎÊC#±äÁ¿?
¡¡¡¡3.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptµÄÒÑÓбäÁ¿?
¡¡¡¡4.ÈçºÎÔÚC#ÖзÃÎÊJavaScriptº¯Êý?
¡¡¡¡ÎÊÌâ1´ð°¸ÈçÏ£º
¡¡¡¡javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
¡¡¡¡·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò ......
Ò» javascriptÕýÔò±í´ïʽµÄ»ù±¾ÖªÊ¶
1 javascript ÕýÔò¶ÔÏó´´½¨ ºÍÓ÷¨
ÉùÃ÷javascript ÕýÔò±í´ïʽ
var reCat = new RegExp("cat");
ÄãÒ²¿ÉÒÔ
var reCat = /cat ......