- 博客(12)
- 资源 (33)
- 收藏
- 关注
原创 [JavaScript] Closure In JavaScript
function methodLayer1() { var layer1Variable = "I'm Layer 1 variable"; alert("methodLayer1:" + xyz); return ( fun
2011-09-18 21:57:59 569
原创 [JavaScript] Constructor 以及 Prototype
一、任何一种类型的对象(Date, Object, String, RegExp, Array, Boolean)都有 constructor 属性constructor 属性 指向 此 类型 对象的 constructor function(Date(), Object()
2011-09-14 22:46:15 776 1
原创 [JavaScript] JavaScript中的类型,竟然也有继承关系。好吧,这个以后得好好看
function demoInheritance(){ //会打印出:myProp:Hello Marvin var str1 = new String("ABC"); for(var tmpName in str1){ alert(tmpNam
2011-09-12 21:32:01 694 1
原创 [JavaScript] typeof 返回什么值?
function demoDatetype(){ alert(typeof "I'm string literal");//string alert(typeof new String("I'm string object"));//object
2011-09-12 15:34:15 1257 1
原创 [JavaScript] Script 中 function, variable 的定义会提升到函数执行前面;但是,function 中定义的 global variable 则不会被提升
1、Script 中 function, variable 的定义 会提升到函数执行前面2、但是,function 中定义的 global variable 则不会被提升 function demoForIn(){ //只有此 functio
2011-09-10 11:34:52 1048 2
原创 [JavaScript] Defining and Invoking Functions
function Definition1、若直接 return; 则 caller 得到 undefined2、若根本没有 return xxxx; 出现在 function 中,则 caller 得到undefined3、如果传的 多了,则多出的被ignore;
2011-09-07 22:16:41 540
原创 [JavaScript]Functions as Methods
function1、 function就是数据值(data values)2、 定义此 function 的名字没有任何特殊之处3、 可以将 function 分配给任何 variable 或者 某对象的任何一个 propertymethod1、
2011-09-06 22:06:38 1086
原创 [JavaScript] Function Properties and Methods
arguments其实就是此函数体内的一个对象,arguments.length 指的是此函数被调用时,实际的参数arguments.callee.length 此函数的期待的参数个数(当然,这个没啥意义,因为,JavaScript中,调用函数时,参数放多少个都无所谓)
2011-09-05 22:23:58 693
原创 [JavaScript] 关于Javascript、Html、Jsp的注释
关于Javascript、Html、Jsp的注释http://leowzy.javaeye.com/blog/566097
2011-09-04 13:48:25 534
原创 [JavaScript] Access the properties of an object
1. object does not have the property of length, so if you need to iterate properties of the object, you can only functi
2011-09-04 13:36:04 619
原创 [JavaScript] null and undefined
nullnull is usually considered a special value of object type, a value that represents no object.When a variable holds the value null, y
2011-09-04 13:08:49 1131
UML与Rational Rose 2002从入门到精通 光盘
2011-08-09
SVN的Eclipse最新插件以及安装方法
2010-04-20
正则表达式的绝好资料
2008-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人