68

解析一道JS面试题

 6 years ago
source link: https://juejin.im/post/5a61ab6a51882573385fcebc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
更新(1/23/2018) 写在前面,本文让读者产生了误会。有这样一些原因: JS为何能取到地址值。 a.x = a未解释清楚。 .运算符是否会对赋值运算有所干扰。 首先:本文用addr只是一个代称,表达的是该地址对应的那块内存。 关于2.3点就是本次更新

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK