标签:src cti undefined ons ... boolean alt com 技术
1.
heap:堆 引用值
stack: 栈 先进后出 里面的值是copy的关系
不可改变的原始值:Number String Boolean undefined null stack
引用值:array Object function ...date RegExp(正则) heap
var arr =[1,2];
var arr1 = arr;
arr.push(3);
console.log(arr1); ==> 1,2,3
var arr =[1,2];
var arr1 = arr;
arr = [1,3];
console.log(arr1); ==> 1,2
2.
var num = 100;
var num1 = num;
num = 200;
标签:src cti undefined ons ... boolean alt com 技术
原文地址:http://www.cnblogs.com/beibidewomen/p/7744952.html