JavaScript For Beginners(转载)

标签:游戏玩法    日期:2017-11-13 10:50    录入:汇盛国际平台    浏览:

  

[JavaScript,For,Beginners,转载]JavaScript For Beginners(转载)

  

注:我对原文进行了编辑,对一些词汇标注颜色,方便阅读。本来准备翻译,但是觉得文章简单易懂,而且原文写得很好,所以就不献丑了。希望对JavaScript初学者能有所帮助。你可以跟着作者一起做那些示例代码,等读完文章的时候,你就可以掌握JavaScript的基本操作了,你会发现其实这一切很容易。

  

  

Contents  
Embedding and including  
write and writeln  
Document object  
Message box  
Function  
Event handler  
Form  
Link  
Date  
Window  
Frame  

  

Embedding and including

  

Let's first see a simple example:  
  
  

  
< html >   
< head >   
< title > This is a JavaScript example title >   
< script language ="JavaScript" >   
  
script >   
head >   
< body > Hi, man! body >   
html >
  

Usually, JavaScript code starts with the tag and ends with the tag . The code placed between and . Sometimes, people embed the code in the tags:   

  
< html >   
★★★小编:汇盛国际注册 整理文章,欢迎大家转载 ★★★