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(保留字)keywordOperator(操作符),object

ECMAScript new version5.0 have new function for JSON object

ECMAScriptcompatible (兼容) mainstream(主流)explorer

DOMbrief introduction

Documentobject model just for xmlbutexpand for HTML appapplicationprogram)。

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

summaryjavascriptis a language talkwith Browsercanmake 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。



猜你喜欢

转载自blog.csdn.net/qq_26925867/article/details/52516894