[英]why would you assign this to another variable?
At the start of the source code for underscore.js , you see this: 在underscore.js的源代码开头 ,您会看到以下内容:
var root = this;
var previousUnderscore = root._;
So the question becomes why didnt the author just write: 所以问题就变成了为什么作者不写:
var previousUnderscore = this._;
Two reasons, 有两个原因,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.