How does JS copy the content of the value returned by a variable or function?

for example, I have a variable var a = 1 . I want to assign this variable to the clipboard. What can I do?

in addition, I would also like to ask, if there is a copy of the content in the clipboard, how to get this content and paste it to the console?

Mar.02,2021

clipboard.js


now young people are so lazy?
js clipboard

Menu