We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function changeObjProperty(o) { o.siteUrl = "http://www.baidu.com" o = new Object() o.siteUrl = "http://www.google.com" } let webSite = new Object(); changeObjProperty(webSite); console.log(webSite.siteUrl);
http://www.baidu.com 原因:函数的形参是值传递的,形参 o 的指向发生改变,指向堆内存中一个新的对象
The text was updated successfully, but these errors were encountered:
No branches or pull requests
http://www.baidu.com
原因:函数的形参是值传递的,形参 o 的指向发生改变,指向堆内存中一个新的对象
The text was updated successfully, but these errors were encountered: