![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
文章平均质量分 56
biyeah
这个作者很懒,什么都没留下…
展开
-
javascript中的bind
[url]http://www.prototypejs.org/api/function/bind[/url] In JavaScript, functions are executed in a specific context (often referred to as “scope”). [b]Inside the function the[/b] [i]this[/i] [b]key...原创 2011-12-21 04:08:59 · 125 阅读 · 0 评论 -
javascript回函数的几种调用方法
先来看下基本的知识,对于一个函数的调用,方法有以下几种。 [code="javascript"]//下面的几种写法是等价的。 alert('something'); this.alert('something'); alert.call(this,'something'); alert.apply(this,['something']);[/code] 以实现数组中each的方...原创 2011-12-22 04:39:24 · 114 阅读 · 0 评论 -
javascript进阶1
参考:[url]http://ejohn.org/apps/learn[/url] 答案在后面。 1、看下面的例子,能看得出输出什么? [code="javascript"]var a = 5; function runMe(a){ console.log("a = " + a);//a=? function innerRun(){ console.log(...原创 2011-12-23 05:10:09 · 82 阅读 · 0 评论