日期:2014-05-16  浏览次数:20389 次

Javascript楂樼骇缂栫▼1
涓€涓畬鏁寸殑 JavaScript 瀹炵幇鏄敱浠ヤ笅 3 涓笉鍚岄儴鍒嗙粍鎴愮殑锛?
鏍稿績锛圗CMAScript锛?骞朵笉涓庝换浣曞叿浣撴祻瑙堝櫒鐩哥粦瀹?
鏂囨。瀵硅薄妯″瀷锛圖OM锛?鏄?HTML 鍜?XML 鐨勫簲鐢ㄧ▼搴忔帴鍙o紙API锛?
娴忚鍣ㄥ璞℃ā鍨嬶紙BOM锛?涓昏澶勭悊娴忚鍣ㄧ獥鍙e拰妗嗘灦锛屼笉杩囬€氬父娴忚鍣ㄧ壒瀹氱殑 JavaScript 鎵╁睍閮借鐪嬪仛 BOM 鐨勪竴閮ㄥ垎銆?

杩欎簺鎵╁睍鍖呮嫭锛?
寮瑰嚭鏂扮殑娴忚鍣ㄧ獥鍙?
绉诲姩銆佸叧闂祻瑙堝櫒绐楀彛浠ュ強璋冩暣绐楀彛澶у皬
鎻愪緵 Web 娴忚鍣ㄨ缁嗕俊鎭殑瀹氫綅瀵硅薄
鎻愪緵鐢ㄦ埛灞忓箷鍒嗚鲸鐜囪缁嗕俊鎭殑灞忓箷瀵硅薄
瀵?cookie 鐨勬敮鎸?
IE 鎵╁睍浜?BOM锛屽姞鍏ヤ簡 ActiveXObject 绫伙紝鍙互閫氳繃 JavaScript 瀹炰緥鍖?ActiveX 瀵硅薄銆?

闄や簡 DOM Core 鍜?DOM HTML 澶栵紝杩樻湁鍏朵粬鍑犵璇█鍙戝竷浜嗚嚜宸辩殑 DOM 鏍囧噯銆傝繖浜涜瑷€閮芥槸鍩轰簬 XML 鐨勶紝姣忕 DOM 閮界粰瀵瑰簲璇█娣诲姞浜嗙壒鏈夌殑鏂规硶鍜屾帴鍙o細
鍙缉鏀剧煝閲忚瑷€锛圫VG锛?.0
鏁板瓧鏍囪璇█锛圡athML锛?.0
鍚屾澶氬獟浣撻泦鎴愯瑷€锛圫MIL锛?

Window 瀵硅薄
Navigator 瀵硅薄
Screen 瀵硅薄
History 瀵硅薄
Location 瀵硅薄

鍛藉悕鍙橀噺
鍙橀噺鍚嶉渶瑕侀伒瀹堜袱鏉$畝鍗曠殑瑙勫垯锛?
绗竴涓瓧绗﹀繀椤绘槸瀛楁瘝銆佷笅鍒掔嚎锛坃锛夋垨缇庡厓绗﹀彿锛?锛?
浣欎笅鐨勫瓧绗﹀彲浠ユ槸涓嬪垝绾裤€佺編鍏冪鍙锋垨浠讳綍瀛楁瘝鎴栨暟瀛楀瓧绗?

ECMAScript 鍏抽敭瀛楃殑瀹屾暣鍒楄〃锛?
break锛宑ase锛宑atch锛宑ontinue锛宒efault锛宒elete锛宒o锛宔lse锛宖inally锛宖or锛宖unction锛宨f锛宨n锛宨nstanceof锛宯ew锛宺eturn锛宻witch锛宼his锛宼hrow锛宼ry锛宼ypeof锛寁ar锛寁oid锛寃hile锛寃ith

鍘熷鍊煎拰寮曠敤鍊?
鍦?ECMAScript 涓紝鍙橀噺鍙互瀛樺湪涓ょ绫诲瀷鐨勫€硷紝鍗冲師濮嬪€煎拰寮曠敤鍊笺€?

鍘熷鍊?
瀛樺偍鍦ㄦ爤锛坰tack锛変腑鐨勭畝鍗曟暟鎹锛屼篃灏辨槸璇达紝瀹冧滑鐨勫€肩洿鎺ュ瓨鍌ㄥ湪鍙橀噺璁块棶鐨勪綅缃€?

寮曠敤鍊?
瀛樺偍鍦ㄥ爢锛坔eap锛変腑鐨勫璞★紝涔熷氨鏄锛屽瓨鍌ㄥ湪鍙橀噺澶勭殑鍊兼槸涓€涓寚閽堬紙point锛夛紝鎸囧悜瀛樺偍瀵硅薄鐨勫唴瀛樺銆?

ECMAScript 鐨勫師濮嬬被鍨嬩箣涓€锛屽嵆 Undefined銆丯ull銆丅oolean銆丯umber 鍜?String 鍨嬨€?

濡傛灉涓€涓€兼槸寮曠敤绫诲瀷鐨勶紝閭d箞瀹冪殑瀛樺偍绌洪棿灏嗕粠鍫嗕腑鍒嗛厤銆傜敱浜庡紩鐢ㄥ€肩殑澶у皬浼氭敼鍙橈紝鎵€浠ヤ笉鑳芥妸瀹冩斁鍦ㄦ爤涓紝鍚﹀垯浼氶檷浣庡彉閲忔煡瀵荤殑閫熷害銆傜浉鍙嶏紝鏀惧湪鍙橀噺鐨勬爤绌洪棿涓殑鍊兼槸璇ュ璞″瓨鍌ㄥ湪鍫嗕腑鐨勫湴鍧€銆傚湴鍧€鐨勫ぇ灏忔槸鍥哄畾鐨勶紝鎵€浠ユ妸瀹冨瓨鍌ㄥ湪鏍堜腑瀵瑰彉閲忔€ц兘鏃犱换浣曡礋闈㈠奖鍝嶃€傚涓嬪浘鎵€绀猴細