简体   繁体   English

关于代码中的函数,我不知道它们对什么意味着什么

[英]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.

相关问题 我不知道要在此代码中更改什么才能使其正常工作 - I don't know what to change in this code for it to work 伪代码中的“!”是什么意思? 我知道“!”代表阶乘,但我无法翻译它 - What does “!” mean in pseudo-code? I know “!” stands for factorial but I can't translate it 试图更改活动标签颜色,不知道我在代码中做错了什么 - Trying to change active tab color, don't know what I am doing wrong in my code 我不知道这段代码中的这些符号是什么意思。 十进制到二进制 - I dont know what these symbols in this code mean. Decimal to binary 我不知道该怎么办:“错误类型错误:this.allCities.filter”不是函数,这意味着“filter()”不是函数? - I don't know what to do about this: "ERROR TypeError: this.allCities.filter" is not a function, wthat means that "filter()" is not a function? 如果我不知道html元素是img还是视频怎么办? - What if I don't know whether an html element will be img or video? 我不知道“渲染”有什么问题 - I don't know what's wrong with 'render' eaddrinuse错误,我不知道该怎么办 - eaddrinuse error i don't know what to do 我不知道联系表有什么问题 - I don't know what's wrong with contact form discord.js 我的代码不起作用,在终端显示 typeError 但我不知道出了什么问题 - discord.js my code isn't working, in the terminal it says typeError but I don't know what went wrong
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM