componentWillReceiveProps(nextProps) {
if (nextProps.playing) {
// Rest of code
}
}
我想在一个wasm函数中调用'echo'和'log'。
我如何用文本格式编码?
答案 0 :(得分:0)
(module
(import "funcs" "echo" (func $echo (result i32)))
(import "funcs" "log" (func $log (result i32)))
(table 0 anyfunc)
(memory $0 1)
(export "memory" (memory $0))
(export "main" (func $main))
(func $main (result i32)
(drop
(call $echo)
)
(drop
(call $log)
)
(i32.const 1)
)
)
主要是
(drop (call $echo))
(drop (call $echo))