我对go和wasm都是新手,看起来这些项目进展很快。I was reading an introduction to using wasm in go,似乎虽然它是在一月份写的,但它已经过时了。当JavaScript函数被调用时,我试图调用单个go函数。这个例子告诉我们要做这样的事情: js.Global().Set("jsFunctionName", js.NewCallback(goCallback)) 尽管当我试图编译这段代码时,我得到了这个
/// include(vars.js) <-- what would go here?/// include(vars.js) <-- what would go here?/// include(vars.js) <-- what would go here?var var3 = "yes";
var test3 = yesOrNo(var3)