rubickecho

Results 30 comments of rubickecho

> 我做了一个欢迎关注 ![demo](https://user-images.githubusercontent.com/3770596/115571438-92e17800-a2f1-11eb-9e92-a6a8ec2ceb42.png) 赞,可以提供下项目地址吗?

here I found a solution about `ContextBridge` on electron, I hope it will help you https://github.com/electron-userland/spectron/issues/693#issuecomment-748482545

> Another workaround may be to decrease correctLevel, e.g.: `correctLevel: QRCode.CorrectLevel.L` THX!

@fxy060608 我相信这是一个临时的解决办法,后期会考虑升级支持更高版本的 sass-loader 吗?

@wudith 更好的去做代码共享,复用公共依赖。之前可能我们使用 external,cdn,等方式提取公共依赖,或者用单独 npm 包的方式抽取公共代码逻辑, 现在用模块联邦可以直接做到.

学习了,很赞

三个都是可以指定特定的执行上下文,不同的是 `bind` 是返回一个新函数,并在执行时使用指定上下文,而`call`、`apply`会立即使用上下文执行函数,返回函数执行结果,他们两者只是参数形式不同

> 闭包解法 > > ```js > const obj = { > name: "jsCoder", > skill: ["es6", "react", "angular"], > say: function () { > for (var i = 0, len...

``` function animal() { this.name = 'animal'; this.colors = ['red', 'blue', 'green']; } animal.prototype.getName = function() { return this.name; } function dog() { } dog.prototype = new animal(); const dog1...