来自 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');
}
如何在 HelloTutorialModule.postMessage('hello') 中执行回调函数;?
谢谢。