鍑芥暟鍚?/td> | 聽瑙i噴 | 聽涓句緥 |
聽Element.toggle | 聽浜ゆ浛闅愯棌鎴栨樉紺?/td> | 聽Element.toggle(''div1'',''div2'') |
聽Element.hide | 聽闅愯棌 | 聽Element.hide(''div1'',''div2'') |
聽Element.show | 鏄劇ず | 聽Element.show(''div1'',''div2'') |
聽Element.remove | 聽鍒犻櫎 | 聽Element.remove(''div1'',''div2'') |
聽Element.getHeight | 聽鍙栧緱楂樺害 | 聽Element.getHeight(''div1'') |
聽Toggle.display | 聽鍜孍lement.toggle鐩稿悓 | 聽Toggle.display(''div1'',''div2'') |
聽Insertion.Before | 聽鍦―IV鍓嶆彃鍏ユ枃瀛?/td> | 聽Insertion.Before(''div1'',''my content'') |
聽Insertion.After | 聽鍦―IV鍚庢彃鍏ユ枃瀛?/td> | 聽Insertion.After(''div1'',''my content'') |
聽Insertion.Top | 聽鍦―IV閲屾渶鍓嶆彃鍏ユ枃瀛?/td> | 聽Insertion.Top(''div1'',''this is a text'') |
聽Insertion.Bottom | 聽鍦―IV閲屾渶鍚庢彃鍏ユ枃瀛?/td> | 聽Insertion.Bottom(''div1'',''this is a text'') |
聽PeriodicalExecuter | 聽浠ョ粰瀹氶鐜囪皟鐢ㄤ竴孌礘avaScript | 聽PeridicalExecutor(test, 1)"榪欓噷test鏄疛avascript鐨勫嚱鏁?1鏄鐜?1縐?. |
聽$ | 聽鍙栧緱涓涓狣IV, 鐩稿綋浜巊etElementById() | 聽$(''div1'') |
聽Field.clear | 聽娓呯┖涓涓緭鍏ユ | 聽Field.clear(''textfield1'') |
聽Field.focus | 鎶娐犵劍鐐歸泦涓湪杈撳叆妗嗕笂 | 聽Field.focus(''select1'') |
聽Field.present | 聽鍒ゆ柇鍐呭鏄惁涓虹┖ | 聽alert(Field.present(''textfield1''))" |
聽Field.select | 聽閫夋嫨杈撳叆妗嗙殑鍐呭 | 聽Field.select(''textfield1'')" |
聽Field.activate | 聽鎶娐犵劍鐐歸泦涓湪杈撳叆妗嗕笂騫墮夋嫨杈撳叆妗嗙殑鍐呭 | 聽Field.activate(''textfield1'')" |
聽Form.serialize | 聽鎶婅〃鏍煎唴瀹硅漿鍖栨垚string | 聽 |
聽Form.getElements | 聽鍙栧緱琛ㄦ牸鍐呭涓烘暟緇勫艦寮?/td> | 聽 |
聽Form.disable | 聽disable琛ㄦ牸鎵鏈夊唴瀹?/td> | 聽Form.disable(''form1'') (榪欎釜濂借薄涓峸ork) |
聽Form.focusFirstElement | 聽鎶婄劍鐐歸泦涓湪琛ㄦ牸絎竴涓厓绱犱笂 | 聽Form.focusFirstElement(''form1'') |
聽Form.reset | 聽Reset琛ㄦ牸 | Form.reset(''form1'') |
聽Form.Element.getValue | 聽鍙栧緱琛ㄦ牸杈撳叆妗嗙殑鍊?/td> | 聽Form.Element.getValue(''text1'') |
聽Form.Element.serialize | 聽聽鎶婅〃鏍間腑杈撳叆妗嗗唴瀹硅漿鍖栨垚string | 聽Form.Element.serialize(''text1'') |
聽$F | 聽絳夊悓浜嶧orm.Element.getValue() | 聽$F(''text1'') |
聽Effect.Highlight | 聽楂樹寒鐗規(guī)晥. | 聽Effect.Highlight(''text1'') |
聽Effect.Fade | 聽瑜壊鐗規(guī)晥 | 聽 |
聽Effect.Scale | 聽鏀懼ぇ緙╁皬(鐧懼垎姣旓級(jí) | Effect.Scale(''text1'', 200) 榪欓噷200 = 200%, 鍗充袱鍊?/p> |
聽Effect.Squish | 聽娑堝け鐗規(guī)晥錛庢枃瀛楃緝?yōu)畯鍚庢秷澶?/td> | 聽Effect.Squish(''text1'') |
聽Effect.Puff | 聽娑堝け鐗規(guī)晥錛庢枃瀛楁斁澶у悗娑堝け | 聽Effect.Puff(''text1'') |
聽Effect.Appear | 聽鍑虹幇鐗規(guī)晥 | 聽 |
聽Effect.ContentZoom | 聽ZOOM鐗規(guī)晥錛?/td> | 聽 |
聽Ajax.Request | 聽浼犻丄jax璇鋒眰緇欐湇鍔″櫒 | 聽Ajax.Request(''http://server/s.php'') |
聽Ajax.Updater | 聽浼犻丄jax璇鋒眰緇欐湇鍔″櫒騫剁敤絳斿鐨勭粨鏋滄洿鏂版寚瀹氱殑Container | 聽Ajax.Updater(''text1'',''http://server/s.php'') |
聽聽聽聽聽 鍩烘湰鐢ㄦ硶:prototype.js緇欐瘡涓富瑕佺殑綾婚兘鍒嗕簡(jiǎn)涓涓狢lass,浣跨敤璧鋒潵寰堟柟渚?瑕佷駭鐢熺壒瀹氱殑鏁堟灉,鍙鐢╪ew Class.function(<argument>)灝卞彲浠ヤ簡(jiǎn).渚嬪:
聽聽聽聽聽 褰撶偣鍑籆lick Me鐨勬椂鍊?div2灝變細(xì)浜ゆ浛闅愯棌鎴栨樉紺?娉ㄦ剰,浣犲彲浠ョ粰toggle鍔犱笂鏃犻檺涓猵arameter,姣斿Element.toggle(''div2'',''div3'',''div4'',...)