![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
destiny_code
这个作者很懒,什么都没留下…
展开
-
Js原型链测试题
以下是原型链测试题测试题1,请思考打印的值为多少?<script> function Person(){} Person.prototype.n=1 var p1=new Person() Person.prototype={ n:2, m:3 } var p2=new Person() console.log(p1.n,p1.m,p2.n,p2.m) </script>测试题2 请思考如何原创 2020-11-18 15:13:13 · 774 阅读 · 0 评论 -
Js中的栈内存与堆内存
1.栈内存和内存栈内存:存放的是局部变量(基本数据类型 Number,String,Boolean,UndefinedNull)。堆内存:存放的是数组和对象(引用数据类型 Object)2.图示栈内存和堆内存栈内存堆内存!](https://img-blog.csdnimg.cn/20201114200835799.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9i原创 2020-11-14 20:56:17 · 368 阅读 · 0 评论