1

1

2

2

2

4

3

5

6

7

js的call方法

obj1.method.call(obj2,arg1,arg2,arg3...)

call方法的作用就是

把obj1的方法放到obj2对象上使用

arg1,arg2....是参数,传给mehtod的哟

 

posted @ 2017-03-29 10:35  海沙月  阅读(172)  评论(0)    收藏  举报