如何从JS方法返回“eventCallBack”的值

时间:2013-03-23 14:43:05

标签: javascript

如何从JS方法

中的“eventCallBack”返回值

参见JS函数定义:

window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);

这里

@param senderId - GCM service identifier

@param eventCallback - {String} - Name of global window function that will handle incoming events from GCM
@param successCallback - {Function} - called on success on registering device

@param failureCallback - {Function} - called on failure on registering device

现在我想返回“GCM_Event”

中生成的值
var requiredValue = window.plugins.GCM.register("428641231987", "GCM_Event", this.GCM_Success, this.GCM_Fail);

我想要requiredValue中的值

0 个答案:

没有答案