其知然,知其所以然!

上一篇 / 下一篇  2008-10-30 16:08:04 / 个人分类:开发语言学习

为了知其然,知其所以然,为测试铺平道路,开始我的开发语言学习

从脚本语言Javascrīpt开始:

一个实例:

<html>
<head>
<scrīpt language="javascrīpt">
var helloE="Hello,welcom to the JS";
var helloC="你好";
function helloworld(){
alert(helloE);
alert(helloC);
}
</scrīpt>
</head>
<body ōnload=helloworld()>
</body>
</html>

javascrīpt是用标签<scrīpt language="javascrīpt">……</scrīpt>来嵌入的;关键字var是用来定义变量的;关键字function是用来定义函数的;内置函数alert(),是用来弹出信息的显示窗的;另外,变量大小写敏感;还有分号“;”千万不可少是用来分割语句的;事件onload(),当被加载时触发。


TAG: 开发语言学习

 

评分:0

我来说两句

日历

« 2024-04-24  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 3697
  • 日志数: 20
  • 建立时间: 2008-04-16
  • 更新时间: 2008-12-11

RSS订阅

Open Toolbar