I have been learning Vue.js, but I have come across something I do not understand. What does the following code mean: _.
?
It has no intrinsic meaning.
The underscore is just a character that is valid in JavaScript identifiers.
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 . It might be something else entirely.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.