如何从 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 中的值