Js指令碼之jQuery學習筆記(1)

來源:互聯網
上載者:User

標籤:javascript   字串   布爾   

Js指令碼之jQuery學習筆記(1)一、javascript基礎
  • 單行注釋

  • 多行注釋 /* */

  • 資料類型

  1. 數值型

  2. 字串型

  3. 布爾型

  4. 空值

  5. 未定義值

  6. 逸出字元

函數定義:1234567891011121314<head><script language="javascript"function test(m){var xixi=“嘻嘻”alert("這是javascript")document.write(xixi + m)}</script><head><body><script language="javascript">test("哈哈")</script></body>**流程式控制制Javascript的流程式控制制如if、while、try/finaly這些和其他語言大致一樣,用法同他函數類似。12if (){}內建對象string
  • 方法:

  1. indexOf()

  2. toIpperCase()

  3. replace()

內建對象Date
  • 方法:

  1. getYear()

  2. getDay()

瀏覽器對象windows
  • 方法:

  1. window.open()

  2. window.close()

瀏覽器對象document
  • 方法:

  1. write()

  2. getElementById()

screen對象二、DOM基礎

DOM文件物件模型,節點樹。對Python中的beautifulSoup理解更深。

DOM的4個介面
  • Document介面

  • Node介面

  • Nodelist介面

  • nameNodemap介面

DOM常用對象
  • Document對象

  • Node對象

  • Nodelist對象

  • Element對象

  • Attr對象


本文出自 “DanielQu” 部落格,請務必保留此出處http://qujunorz.blog.51cto.com/6378776/1871147

Js指令碼之jQuery學習筆記(1)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.