摘要:
原型的另外一个作用就是扩展对象中的属性和方法的 阅读全文
posted @ 2017-05-17 16:09
无天666
阅读(457)
评论(0)
推荐(0)
摘要:
Untitled Document 阅读全文
posted @ 2017-05-17 09:39
无天666
阅读(220)
评论(0)
推荐(0)
摘要:
Untitled Document Untitled Document 阅读全文
posted @ 2017-05-17 08:40
无天666
阅读(392)
评论(0)
推荐(0)
摘要:
var定义的属性和方法相当于是私有的属性和方法,不同函数对象的方法的地址是不一样的。 阅读全文
posted @ 2017-05-17 05:41
无天666
阅读(285)
评论(0)
推荐(0)
摘要:
Untitled Document Untitled Document 执行环境(execution context)定义了变量或函数有权访问的其他数据,每一个执行环境都有一个与之关联的变量... 阅读全文
posted @ 2017-05-17 03:51
无天666
阅读(309)
评论(0)
推荐(0)
摘要:
函数当类看时,跟java一样。 类里的函数和原型里的函数当对象的成员函数看,类里的属性和原型里的属性当成对象的成员变量看。 函数当函数看是,当成普通函数看就是当成函数地址看。 阅读全文
posted @ 2017-05-17 03:10
无天666
阅读(347)
评论(0)
推荐(0)
摘要:
<html> <body> <script type="text/javascript"> function Obj(x, y){ this.x = x ; this.y = y ; this.say = function(){ this.name = "aaa";//不是生成对象的属性 gg = 阅读全文
posted @ 2017-05-17 01:09
无天666
阅读(250)
评论(0)
推荐(0)
摘要:
Untitled Document Untitled Document 阅读全文
posted @ 2017-05-17 00:21
无天666
阅读(198)
评论(0)
推荐(0)