来自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')中执行回调函数; ?
谢谢.