2023年全國(guó)碩士研究生考試考研英語(yǔ)一試題真題(含答案詳解+作文范文)_第1頁(yè)
已閱讀1頁(yè),還剩65頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、JavriptJavript學(xué)習(xí)筆記學(xué)習(xí)筆記1第一章第一章JavriptJavript基礎(chǔ)基礎(chǔ)1.如何實(shí)現(xiàn)Javript.........................................................................................................................4(1)如何把Javript代碼放到HTML頁(yè)面里..............

2、.............................................................4?使用標(biāo)簽直接在HTML代碼里加入Javript代碼..................................4?使用調(diào)用外部的Javript(.js文件)..........................4?如何與老瀏覽器打交道.....................................

3、...............................................................4(2)把Javript代碼放到HTML頁(yè)面不同的位置...................................................................4?把Javript代碼放到HTML部分...........................................

4、..........................4?把Javript代碼放到HTML部分.....................................................................4?示例代碼...................................................................................................

5、.........................42.Javript語(yǔ)句與注釋.....................................................................................................................5(1)Javript語(yǔ)句結(jié)束符...............................................

6、...........................................................5(2)Javript代碼塊..................................................................................................................5(3)Javript注釋....................

7、..................................................................................................5(4)Javript變量.............................................................................................................

8、.........5?變量命名規(guī)則....................................................................................................................5?申明或創(chuàng)建變量..............................................................................

9、..................................5?重新申明變量....................................................................................................................53.Javript運(yùn)算符.................................................

10、............................................................................5(1)基本運(yùn)算符...............................................................................................................................5(2)位運(yùn)算符

11、(~(非運(yùn)算)、&(與運(yùn)算)、|(或運(yùn)算)、^(異或運(yùn)算)).......................................5(3)Boolean運(yùn)算(!(求反運(yùn)算)、&&(與運(yùn)算)、||(或運(yùn)算))..................................................6(4)關(guān)系運(yùn)算(、=、==、!=).............................................

12、..........................................6(5)等性運(yùn)算符(==、===、!=、!==)...........................................................................................6(6)條件運(yùn)算符......................................................

13、.........................................................................7(7)其他運(yùn)算符...............................................................................................................................7?賦值運(yùn)算符....

14、....................................................................................................................7?逗號(hào)運(yùn)算符.................................................................................................

15、.......................7?typeof運(yùn)算符...................................................................................................................7?運(yùn)算符..................................................................

16、.................................................7?instanceof運(yùn)算符...........................................................................................................74.with語(yǔ)句........................................

17、.....................................................................................................8(1)語(yǔ)法及作用..............................................................................................................

18、.................8(2)示例...........................................................................................................................................85.分支語(yǔ)句...................................................

19、...........................................................................................8(1)if...else...語(yǔ)句...............................................................................................................

20、....8(2)switch語(yǔ)句..............................................................................................................................86.消息框........................................................................

21、..........................................................................8(1)警告框.......................................................................................................................................8(2)

22、確認(rèn)框.......................................................................................................................................8(3)提示框...........................................................................

23、............................................................97.函數(shù)(一般定義到標(biāo)簽之間)..................................................................................................9(1)定義函數(shù)......................................

24、.............................................................................................9(2)關(guān)于函數(shù)的arguments對(duì)象...................................................................................................9?在函數(shù)代碼中

25、,使用特殊對(duì)象arguments,開(kāi)發(fā)者無(wú)需明確指出參數(shù)名,就能訪問(wèn)它們。...................................................................................................................................9?使用arguments.length檢測(cè)參數(shù)個(gè)數(shù)..........................

26、................................................9?模擬函數(shù)重載..................................................................................................................10(3)Function對(duì)象(類)................................

27、................................................................................10?Function對(duì)象的使用.....................................................................................................10?使用Function類的length屬性

28、..................................................................................11?使用Function類的valueOf()方法和toString()方法............................................11(4)閉包................................................

29、.........................................................................................11JavriptJavript學(xué)習(xí)筆記學(xué)習(xí)筆記3(1)轉(zhuǎn)換成字符串.................................................................................................

30、........................19(2)轉(zhuǎn)換成數(shù)字.............................................................................................................................20?parseInt()................................................

31、......................................................................20?parseFloat()..................................................................................................................20(3)強(qiáng)制類型轉(zhuǎn)換..........

32、...............................................................................................................20?Boolean()函數(shù)...............................................................................................

33、...............20?Number()函數(shù)..................................................................................................................20?String()函數(shù).................................................................

34、...............................................214.Javript常用對(duì)象.......................................................................................................................21(1)對(duì)象類型說(shuō)明............................

35、.............................................................................................21?本地對(duì)象........................................................................................................................

36、..21?內(nèi)置對(duì)象..........................................................................................................................21?宿主對(duì)象..................................................................................

37、........................................21(2)Object對(duì)象............................................................................................................................21?Object對(duì)象的屬性.............................

38、............................................................................21?Object對(duì)象的方法.........................................................................................................21(3)Javript對(duì)象參考(略)......

39、..............................................................................................21(4)Browser(瀏覽器)對(duì)象參考(略)...........................................................................................21(5)HTMLDO

40、M對(duì)象參考(略).......................................................................................................22第三章第三章JavriptJavript高級(jí)高級(jí)1.Cookie...........................................................................

41、.....................................................................23(1)cookie的作用........................................................................................................................23(2)示例..........

42、...............................................................................................................................232.訪問(wèn)HTMLDOM節(jié)點(diǎn)..............................................................................

43、............................................24(1)查找并訪問(wèn)節(jié)點(diǎn)(得到節(jié)點(diǎn)對(duì)象).........................................................................................24?使用getElementById()得到某個(gè)節(jié)點(diǎn)對(duì)象......................................

44、...........................24?使用getElementsByTagName()得到某些節(jié)點(diǎn)對(duì)象.....................................................24?使用getElementsByName()得到某些節(jié)點(diǎn)對(duì)象...........................................................25?parentNode、

45、firstChild以及l(fā)astChild屬性.........................................................25(2)訪問(wèn)節(jié)點(diǎn)的內(nèi)容.....................................................................................................................26?innerTex

46、t(IE)、textContent(FF)、innerHTML........................................................26?outerText、outerHTML(少用)......................................................................................26?value屬性獲取表單節(jié)點(diǎn)內(nèi)容...

47、....................................................................................26(3)訪問(wèn)節(jié)點(diǎn)的樣式.....................................................................................................................27?使用節(jié)點(diǎn)

48、對(duì)象的style屬性對(duì)象改變樣式..................................................................27?使用className設(shè)置樣式..............................................................................................273.繼承機(jī)制實(shí)現(xiàn)................

49、....................................................................................................................27(1)繼承的方式..............................................................................................

50、...............................27(2)繼承方式1—對(duì)象冒充..........................................................................................................27(3)繼承方式2—call()方法與apply()方法.......................................

51、....................................28?call()方法......................................................................................................................28?apply()方法...........................................

52、.........................................................................28(4)繼承方式3—原型鏈(prototypechaining)..................................................................29(5)繼承方式4—混合方式.................................

53、.........................................................................29附:附:ECMriptECMript關(guān)鍵字與保留字關(guān)鍵字與保留字1.關(guān)鍵字............................................................................................................

54、....................................302.保留字................................................................................................................................................30作者:李志偉作者:李志偉編寫(xiě)完成時(shí)間:編寫(xiě)完成時(shí)間:20131

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫(kù)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論