<script>
var a = {n:1};
var b = a;
a.x = a = {n:2};
console.log(a.x);// --> undefined
console.log(b.x);// --> [object Object]
</script>
更多内容请查看
<script>
var a = {n:1};
var b = a;
a.x = a = {n:2};
console.log(a.x);// --> undefined
console.log(b.x);// --> [object Object]
</script>
更多内容请查看
文章 转载自:https://www.cnblogs.com/vajoy/p/3703859.html, 仅供网友学习和交流,如果有侵犯到您的权益,请及时联系QQ:1446834691,将会在第一时间进行处理!
对于文中内容,本站只作转载,不代表本站同意文中观点或证实文中信息