voidxin
voidxin
@acton393 ok,谢了
@acton393 请问这里回调之后的function只能执行或调用native的方法吗?(iOS端) ``` var eventModule = require('@weex-module/event'); eventModule.openURL('url',function(ret) { //这里只能执行native的方法吗? nativeLog(ret); }); ``` 我在js中使用本js中的方法时它不执行(如下): ``` var eventModule = require('@weex-module/event'); eventModule.openURL('url',function(ret) { //这是本js中的一个方法,不执行test()方法 this.test(); //当我换成native的一个方法时,如下的updateVersionWithStr(),能调用执行 eventModule.updateVersionWithStr(result); }); ``` //js中的test方法 ``` test:...
ok,我发现问题了,作用域的问题,要在外部先申明var self = this; ``` var self = this eventModule.openURL(''url", function(ret){ self.test() }) ``` 这样就可以了。
@misakuo 解决了,非常感谢^-^
@haicuan139 谢谢,已解决
ok,我发现0.8中已经有文档介绍了[doc](http://alibaba.github.io/weex/doc/modules/globalevent.html),解决了,谢谢
@Hanks10100 @cooliean ,浏览器中报如下错误: ``` [h5-render] unexpected error in _xhr for 'fetch' API error { target: XMLHttpRequest, isTrusted: true, lengthComputable: false, loaded: 0, total: 0, currentTarget: XMLHttpRequest, eventPhase: 2, bubbles: false,...
> Hello everyone, I have managed to solve this "Failed to resolve labels" problem". Inside the MediaPipe.tulsiproj (open it's folder), it has Configs/MediaPipe.tulsigen, and inside the MediaPipe.tulsigen. > > input...