this的用法
摘要:
this的用法在函数中this到底取何值,是在**函数真正被调用执行的时候确定的**,函数定义的时候确定不了.因为this的取值是执行上下文环境的一部分,每次调用函数,都会产生一个新的执行上下文环境.**1. 构造函数之this**```function Foo() { this.name = "z 阅读全文
posted @ 2016-05-01 16:37 空城小夏 阅读(122) 评论(0) 推荐(0)
posted @ 2016-05-01 16:37 空城小夏 阅读(122) 评论(0) 推荐(0)
posted @ 2016-05-01 16:36 空城小夏 阅读(129) 评论(0) 推荐(0)
posted @ 2016-05-01 16:36 空城小夏 阅读(157) 评论(0) 推荐(0)
posted @ 2016-05-01 16:35 空城小夏 阅读(139) 评论(0) 推荐(0)
posted @ 2016-05-01 16:34 空城小夏 阅读(251) 评论(0) 推荐(0)