How to understand const $in js?

does not understand the following JS code snippet, why you can const $, and then you can use $. Method name, so const $= require is introduced into all the functions in utils, which is convenient to call?

const $ = require("../../inline/utils")

params.sign = $.generateSignature(params)
May.27,2021

you can learn about require and import , right? The usage of these two methods.

you can also look at the display in the utils file and export some methods. These methods are available to you.

console.log ($) you can also see what methods are available in it

Menu