自己说还真不好说,看MSDN吧,重点要先理解object context:
Calls a method of an object, substituting another object for the current object.call([thisObj[, arg1[, arg2[, [, argN]]]]])
Arguments
thisObj
Optional. The object to be used as the current object.
arg1, arg2, , argN
Optional. List of arguments to be passed to the method.
Res
The call method is used to call a method on behalf of another object. The call method allows you to change the object context(要好好理解它) of a function from the original context to the new object specified by thisObj.If thisObj is not supplied, the global object is used as thisObj.
Calls a method of an object, substituting another object for the current object.call([thisObj[, arg1[, arg2[, [, argN]]]]])
Arguments
thisObj
Optional. The object to be used as the current object.
arg1, arg2, , argN
Optional. List of arguments to be passed to the method.
Res
The call method is used to call a method on behalf of another object. The call method allows you to change the object context(要好好理解它) of a function from the original context to the new object specified by thisObj.If thisObj is not supplied, the global object is used as thisObj.
解决方案 »
- extjs splitbutton 如何让menu响应文本点击
- 请教,asp如何取javascript里面的值
- 提示"Error:无法设置 innerText 属性。 该操作的目标元件无效。"请问是什么原因?
- ajax中文乱码问题,要求用GB2312!
- 有个问题想请教 FORM表单中的FILE对象 如何让光标停在浏览按钮上 还有如何对FILE的文件类型做判断呢 我只要EXCEL类型的 谢谢
- 各位大侠,有个问题继续解决,谢谢!
- 好心热心的人帮帮我呀,关于调用applet的问题
- 大家帮我一段代码!先到先得
- 学习Jquery 二三事:吐槽下PHP100和百度!
- 为什么alert(document.getElementById("XXX").style.opacity)弹出来的对话框上什么也没有?
- js函数问题
- 看这个验证谁能解决???!!!解决都有分!!!
就是把对象obj1的方法merthod1绑定到对象obj2上用