- 博客(4)
- 资源 (15)
- 收藏
- 关注
原创 javascript核心学习笔记
变量1. 如果没有用var语句给一个变量定初始值,它的初始值就是undefined.2. 尝试给未用var声明的变量赋值,JavaScript会隐式声明该变量。但是,隐式声明的变量总是被创建为全局变量,即使该变量只在一个函数体内使用。3. 函数中声明的变量,无论在哪里声明的,在整个函数中都有定义。4. 变量保存了基本类型的实际值,但是
2009-12-29 11:57:00 531
原创 javascript变量的作用域
函数中声明的所有变量,无论是在哪里声明的,在整个函数中它们都是有定义的。 var s = new Object(); test(s); function test(o){ var i=0; if(typeof o == "object"){ var j = 0; for(var k=0; k document.write(k+"/n"); } document.writ
2009-12-27 11:55:00 618
原创 javascript&java数据类型以及数组的初始化比较
一、两种语言所支持的数据类型:1. javascript3种基本数据类型:数字、文本字符串和布尔值。2种小数据类型:null、undefined1种复合数据类型:object2. java的8种基本数据类型:int,short,byte,long,char,float,double,boolean。引用类型:String二、特殊的数值
2009-12-27 11:52:00 2068
原创 javascript调用activeXObject 导出页面表格数据到excel
function makeDataBook(){ var xls = new ActiveXObject ("Excel.Application"); xls.visible = true; var newBook = xls.Workbooks.Add; newBook.Worksheets.Add; newBook.Worksheets(1).Activate; xls
2009-12-01 17:26:00 2741
TheSwiftProgrammingLanguage(Swift4)
2017-09-17
TCP.IP.Sockets.in.Java.2nd.Edition.pdf (TCP/IP Socket 编程)
2014-06-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人