摘要: 对象赋值: 1.var objOld = {a:1,b:2}, objNew = objOld; objOld.a = 5; 此时输出:objOld = {a:5,b:2}; objNew = {a:5,b:2}; 说明修改objNew 的值会影响objOld 的值 2.var objOld = { 阅读全文
posted @ 2018-03-27 16:50 sunflower-zy 阅读(185) 评论(0) 推荐(0) 编辑