RandomYang

Results 34 comments of RandomYang

```javascript // https://wsvincent.com/javascript-currying/ const curry = (fn, ...args) => (fn.length curry(fn, ...args, ...more); ```

> My workaround for this is as follows: > > 1. Select text to get the Polyglot translation > 2. Select translated text that you want to copy **but do...

> Copying the entire text or just a selected word? @uetchy The entire text, lol.😄

定义宽度高度的时候不能自适应比例,所以它已经废了。。。

既然它自己不能获取,那就自己获取咯 code fragment: ```js let imageCatch = new Image(); imageCatch.src = dataUrl; imageCatch.onload = () => { // do something with // w: imageCatch.width, // h: imageCatch.height }; ```

> Hi, i have same issue. After first keydown event callbacks stop calling. > > I'm on Mojave `10.14.2`, node version `10.15.0`. > > ``` > const ioHook = require('iohook');...

整体这么好的一个主题,居然连这种基本需求都没提供接口修改...

为了完全理解这张图,脑子基本转不动了 ![prototype_chain](https://user-images.githubusercontent.com/25839518/54863965-6b262b80-4d8a-11e9-906a-f012204942e5.png)

完全可以的,根据代码实现来看。只要有`components`数组,就可以通过`mount`函数,渲染和挂载。 code snap: ```js //给定模板,和要挂载的元素id,挂载组件 var mount = function(id, _component) { let components = _Vue.$store.state.components let component = components.find(c => c.info.id === id) return new Promise((resolve, reject) => { //...