当前位置: 首页 > 图文教程 > 网络编程 > Javascript > 学习JavaScript后的小结

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

Javascript 中的 学习JavaScript后的小结


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-28   浏览: 426 ::
收藏到网摘: n/a

常量:JavaScript常量又称字面常量,是固化在程序代码中的信息。
变量:变量的主要作用是存取数据,提供一个存取信息的容器。
数据类型
    整型:整型常量就是数字,可以是十进制、八进制、十六进制。
    字符串:字符串就是以英文""或''括起来的一个或几个字符。
    布尔型:布尔型常量就是逻辑上的“真”和“假”。
    空值:在JavaScript中,用“null”表示什么都没有。
弹出警告框:alert
弹出确认“是/否”的对话框:confirm
输出到页面内容:document.write
获取内置对象:dateobj=new Date();
                     theYear=dateobj.getYear();
 
javascript Date 对象的常用方法
方法 说明
 getDate()  返回日期值(1-31)
 getDay()  返回星期值(0-6)
 getHours()  返回小时值(0-23)
 getMinutes()  返回分钟值(0-59)
 getSeconds()  返回秒值(0-59)
 getMonth()  返回月份值(0-11)
 getFullYear()  返回年份,值为4位数
 getTime()  返回自(1970 01 01)以来的毫秒数