Yingchen Xue

Results 6 comments of Yingchen Xue

感谢分享,基本通读了一遍,写的非常赞,感谢,准备自己也来整理一下 Vue 的源码。 最后一段写的很有道理,读源码只能一步步断点跟踪,情景重现,有时候还得自己做 unit test,博主辛苦了。

是因为初始化插件的时候,音频没有加载完(加载是异步的),所以获得的时间是NaN,只要改为 `updateTotalTime: function() { var self = this; self.$Audio.on('canplay', function () { var time = self.Audio.duration, minutes = self.getAudioMinutes(time), seconds = self.getAudioSeconds(time), audioTime = minutes + ":" + seconds; self.$audio_length.text(audioTime);...

@iwestlin 其实这里由于λ演算中,对于函数是延迟求值的,而对于 JS 这种 call by value 的语言来说,是必须先求值再作为实参传入函数的。所以在 JS 中利用 v => f(x(x))(v) 这种方式来进行对 x 延迟求值,而在λ演算中,直接 f(v=>x(x)(v)),这里的 x 表达式并不会立即求值。注意在 JS 中如果是λ中的这种写法会引起 stack crash。

hi @pcriadoperez , thank you very much for your reply, I have run through the whole use case, but I found a new problem, the parameter type of websocket's order...

I want to create more than one `ThreadWebsocketManager` in the main thread, but I got the `this event loop is already running`, do I need to create different `ThreadWebsocketManagers` in...