sign-ux

Results 12 comments of sign-ux

![image](https://user-images.githubusercontent.com/51436709/128799097-16c9bb2e-060e-4139-bc78-9265e7efd1e2.png) 这句话从何说起啊?

> const arr1 = ['a', 'b',[1,2]]; > const arr2 = ['c']; > const arr3 = [...arr1,...arr2] > arr[1][0] = 9999 // 修改arr1里面数组成员值 > console.log(arr[3]) // 影响到arr3,['a','b',[9999,2],'c'] > > arr1 is...

你这个arr1是一个二维数组,而...运算符是一个浅拷贝,只能拷贝一层,对于多层的对象获数组拷贝的是引用

![image](https://user-images.githubusercontent.com/51436709/125582219-9d48d785-763e-4618-a142-413c72db816e.png) factorial(n,total=1) 需要初始化下

![image](https://user-images.githubusercontent.com/51436709/125583566-7ac0362d-c809-4f99-8592-268ddc0d82f0.png) 没有明白尾调用对于递归的优化,尤其是下面举例的应用,更蒙了。大佬能说得更明白些吗 @huihuiha

![image](https://user-images.githubusercontent.com/51436709/125382379-2776e600-e3c8-11eb-9edc-7d6af0af1026.png)

![image](https://user-images.githubusercontent.com/51436709/125382419-38275c00-e3c8-11eb-8493-1bb6da0b1678.png)

![image](https://user-images.githubusercontent.com/51436709/124412609-7e097200-dd81-11eb-9bef-e6ef4ea7bdd0.png) 返回-1

![image](https://user-images.githubusercontent.com/51436709/125589113-e993ece7-9989-472b-b458-a197189329e7.png)

![image](https://user-images.githubusercontent.com/51436709/126599569-71374953-ba54-4a07-8e31-6a9e0036904a.png) 请问这被遮挡的元素可触发事件啥意思?比如display:none整个元素在页面中消失怎么触发的? @huihuiha