[英]about functions in code that I don't know what they mean for what
I have been learning Vue.js, but I have come across something I do not understand. 我一直在学习Vue.js,但是遇到了一些我不理解的东西。 What does the following code mean: _.
以下代码是什么意思: _.
? ?
It has no intrinsic meaning. 它没有内在的意义。
The underscore is just a character that is valid in JavaScript identifiers. 下划线只是在JavaScript标识符中有效的字符。
const _ = { hello: function() { console.log("Hello!"); } }; _.hello();
The code you are looking at could assign any value to it. 您正在查看的代码可以为其分配任何值。
It might be the underscore library . 它可能是下划线库 。 It might be the lodash library . 可能是lodash库 。 It might be something else entirely. 可能完全是另外一回事。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.