56

Results 18 comments of 56

思考题: 这里其实可以看成下面这样: ```js function _say() { console.log(this); } console.log(obj); var obj = { say: _say.bind(obj) } obj.say(); ``` 输出`undefined window`。 如有误请指正

[【进阶1-3期】JavaScript深入之内存空间详细图解](https://github.com/yygmind/blog/issues/14) 进阶系列中有的

```js const arr = [1,2,3,[4,5],6,[7,[8, 9, 10]]] // 递归 function flatten(arr, res = []) { for (let i = 0; i < arr.length; i++) { if (typeof arr[i] === 'object')...

```js function bubbleSort(arr) { for (let i = 0; i < arr.length; i++) { for (let j = 0; j < arr.length - i - 1; j++) { if (arr[j]...

补充一个 ```js function bubbleSort2(arr) { let low = 0; let high = arr.length - 1; let temp, j; while (low < high) { // 正排找最大 for (j = low; j...

```js function randomNumber(len) { const max = 20; const arr = []; for (let i = 0; i < len; i++) { arr.push(Math.floor(Math.random() * max)); } const sorted = [...new...

[10 分钟理解 BFC 原理](https://zhuanlan.zhihu.com/p/25321647)

> 我也遇到这样的情况,请问要怎么解决? > I have same issue. Is there any solution to resolve this issue? +1

二维码过期了。。