javascript 第一日(基本概念)
Javascriptcontains ECMAScript DOM BOM
ECMAScript:core
DOM:objectfor file
BOM:objectfor web-explorer
ECMAScript brief introduction
ECMAScriptas a core for javascript .it conclude grammar,type,Sentence,Reservedword(保留字),keyword,Operator(操作符),object
ECMAScript new version5.0 have new function for JSON object
ECMAScriptcompatible (相容) mainstream(主流)explorer。
DOMbrief introduction
Documentobject model just for xml。butexpand for HTML app(applicationprogram)。
Justa api!!!(important)
domshow html as a tree
eg:
<html>
<head>love</head>//title
<body>
<p>hellomissY</p>//text
</body>
</html>
DOMhave two levels;
DOMlevel1 is a standard for w3c.
DOMlevel2 aim for
1.DOMviews:define trace different documents views api;
2.DOMEvents:define affair and how to deal affair;
3.DOMStyles:define CSS api;
4.DOMTraversal(遍歷) andRange:define Traversal and Range api;
DOMLEVEL3
1.DOMLoad and Save
2.DOMValidation(DOM驗證)
BOMbrief introduction
BrowserObject Model(瀏覽器物件模型)
dealwith explorer ex-pages.
BOMjust deal with Browser window and frame
expandedbrowser 。
summary:javascriptis a language 。talkwith Browser。canmake some Script(指令碼)
ECMAScript:提供核心語言功能。providecore language function
DOM:提供訪問和操作網頁內容的方法和介面。provideaccess and manipulationweb
BOM:提供與瀏覽器互動的方法和介面。talkwith browser 。providefunction api。
due to my english is worry。so just try english to blog。