1.踩坑 1.1.深拷贝/浅拷贝 这实际上算不上vue的问题,算是js基础没打好的坑吧。 先来看一个简单的例子: let obj = {name:'fiona-SUN'}; let copyObj = obj; copyObj.name = 'fiona'; console.log(copyObj. ...
分类:
其他好文 时间:
2020-06-30 14:27:56
阅读次数:
41
java.lang.NoSuchMethodError,想必 Java的开发者都遇到过这个报错吧,这个错误基本上都是由JVM 的 “全网负责委托机制”,(全网负责委托机制是啥? 》》 https://cloud.tencent.com/developer/article/1353281) 引发的问题 ...
分类:
编程语言 时间:
2020-06-30 12:45:02
阅读次数:
60
1.条件语句的优化 // 根据颜色找出对应的水果 // bad function test(color) { switch (color) { case 'red': return ['apple', 'strawberry']; case 'yellow': return ['banana', ' ...
分类:
Web程序 时间:
2020-06-30 12:35:04
阅读次数:
87
内存溢出以及堆栈溢出 简单认识一下2种内存异常OutOfMemoryError,StackOverflowError 来自JDK Doc的解释: public class OutOfMemoryError extends VirtualMachineError Thrown when the Jav ...
分类:
其他好文 时间:
2020-06-30 10:24:17
阅读次数:
51
13 约定 A common problem that arises when wrapping C libraries is that of maintaining reliability and checking for errors. The fact of the matter is tha ...
分类:
其他好文 时间:
2020-06-29 22:57:18
阅读次数:
82
Question Theory An Example // Expression.java import java.util.HashMap; public abstract class Expression { public abstract int interpreter(HashMap<Str ...
分类:
其他好文 时间:
2020-06-29 18:29:08
阅读次数:
56
React不像Vue那样有router.beforeEach这样的路由钩子,但是它提供了一个组件:Prompt import { Prompt } from 'react-router-dom'; <Prompt when={true} message={location => '信息还没保存,确定 ...
分类:
其他好文 时间:
2020-06-29 13:25:25
阅读次数:
149
Trapping Rain Water (H) 题目 Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is ...
分类:
移动开发 时间:
2020-06-29 09:29:26
阅读次数:
60
Welcome!!! to my presentation !, About friendship, and growth. When i was little(靠过来正式), i used to make many friends. no matter who they are!, we can ...
分类:
其他好文 时间:
2020-06-29 00:51:57
阅读次数:
104
Welcome!!! to my presentation !, About friendship, and growth. When i was little(靠过来正式), i used to make many friends. no matter who they are!, we can ...
分类:
其他好文 时间:
2020-06-29 00:25:26
阅读次数:
77