小编chu*_*ney的帖子

如何在向NaCl(Chrome Native Client)发送消息后实施回调?

来自NaCl新手的简单问题......

在我的javascript中,我向NaCl模块发布了一条消息.
在NaCl模块处理此消息后,如何在javascript中执行回调?

入门教程中,给出了以下示例.

 function moduleDidLoad() {
      HelloTutorialModule = document.getElementById('hello_tutorial');
      updateStatus('SUCCESS');
      // Send a message to the Native Client module
      HelloTutorialModule.postMessage('hello');
    }
Run Code Online (Sandbox Code Playgroud)

如何在HelloTutorialModule.postMessage('hello')中执行回调函数; ?

谢谢.

javascript callback google-nativeclient ppapi

0
推荐指数
1
解决办法
898
查看次数

标签 统计

callback ×1

google-nativeclient ×1

javascript ×1

ppapi ×1